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:
parent
160ae729dd
commit
93c244694a
1
.dockerignore
Normal file
1
.dockerignore
Normal file
@ -0,0 +1 @@
|
||||
.git
|
10
Dockerfile
Normal file
10
Dockerfile
Normal 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"]
|
Loading…
x
Reference in New Issue
Block a user