Adds a Dockerfile

This Dockerfile can be used for building a Docker image of Webogram that
launches a container with Node listening on port 8000.

This image uses the official nginx image as its base.
This commit is contained in:
Vincent Ambo 2014-09-02 18:44:29 +02:00
parent 160ae729dd
commit 93c244694a
No known key found for this signature in database
GPG Key ID: 66F505681DB8F43B
2 changed files with 11 additions and 0 deletions

1
.dockerignore Normal file
View File

@ -0,0 +1 @@
.git

10
Dockerfile Normal file
View File

@ -0,0 +1,10 @@
FROM node
ADD . /opt/webogram
WORKDIR /opt/webogram
RUN npm install
EXPOSE 8000
CMD ["node", "server.js", "8000", "0.0.0.0"]