Browse Source

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.
master
Vincent Ambo 10 years ago
parent
commit
93c244694a
No known key found for this signature in database
GPG Key ID: 66F505681DB8F43B
  1. 1
      .dockerignore
  2. 10
      Dockerfile

1
.dockerignore

@ -0,0 +1 @@ @@ -0,0 +1 @@
.git

10
Dockerfile

@ -0,0 +1,10 @@ @@ -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"]
Loading…
Cancel
Save