Skip to content

Commit 93c2446

Browse files
author
Vincent Ambo
committed
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.
1 parent 160ae72 commit 93c2446

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.dockerignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.git

Dockerfile

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM node
2+
3+
ADD . /opt/webogram
4+
WORKDIR /opt/webogram
5+
6+
RUN npm install
7+
8+
EXPOSE 8000
9+
10+
CMD ["node", "server.js", "8000", "0.0.0.0"]

0 commit comments

Comments
 (0)