mirror of
https://github.com/demostf/sync.git
synced 2026-06-03 10:34:06 +02:00
add dockerfile
This commit is contained in:
parent
6671772d18
commit
40dc4749cf
6 changed files with 21 additions and 1 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/
|
||||
COPY sync.ts /usr/src/app/
|
||||
RUN npm install && node node_modules/.bin/tsc sync.ts && npm prune --production
|
||||
|
||||
|
||||
EXPOSE 80
|
||||
CMD [ "node", "/usr/src/app/sync.js" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue