Skip to content

Minimalistic Docker image for running static websites

Notifications You must be signed in to change notification settings

kot-lex/node-nginx-npm3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

6ab16b6 · Sep 2, 2016

History

1 Commit
Sep 2, 2016
Sep 2, 2016

Repository files navigation

node-nginx-npm3

Minimalistic Docker image for running static websites

Includes Node LTS, Nginx and both npm 2 and npm 3 as some projects reiquire specific npm version

###Usage Create Dockerfile

FROM kotlex/node-nginx-npm3:latest

# Copy source files to nginx docroot
COPY . /var/www/html

# Run server
CMD ["nginx", "-g", "daemon off;"]

Build an image: docker build --tag mysite .

Run container: docker run -p 8080:80 mysite

Test it: curl http://localhost:8080/

About

Minimalistic Docker image for running static websites

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published