Skip to content

Frontline-Archive/docker-nginx-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NGINX and Node

Creates a docker image with NGINX and Node installed in it. Useful to serve up a single page application built with node.

Supported tags and respective Dockerfile links

Usage

Make a Dockerfile something like this:

FROM sinet/nginx-node:latest

# Install and build the application
COPY . /usr/src/app
WORKDIR /usr/src/app
RUN npm install \
	&& npm run bower -- install --allow-root \
	&& npm run gulp -- build

COPY default.conf /etc/nginx/conf.d/

CMD ["nginx", "-g", "daemon off;"]

The default.conf would look something like this.

server {
    listen       80;
    server_name  localhost;

    location / {
        root   /usr/src/app/build;
        index  index.html index.htm;
    }

}

About

No description or website provided.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published