mirror of
https://github.com/demostf/demoserver.git
synced 2026-06-03 13:54:12 +02:00
create docker image
This commit is contained in:
parent
625baaa0bb
commit
5397a3e9ed
6 changed files with 28 additions and 34 deletions
12
Dockerfile
Normal file
12
Dockerfile
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
FROM node:7.8-alpine
|
||||
|
||||
RUN mkdir -p /usr/src/app
|
||||
WORKDIR /usr/src/app
|
||||
|
||||
COPY package.json /usr/src/app/
|
||||
RUN npm install
|
||||
|
||||
COPY index.js /usr/src/app/
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "node", "/usr/src/app/index.js" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue