1
0
Fork 0

feat: dockerfile for node packages

This commit is contained in:
ssube 2019-09-17 18:56:23 -05:00
parent 4c0ef6e588
commit c1f792de8a
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 14 additions and 0 deletions

14
Dockerfile Normal file
View File

@ -0,0 +1,14 @@
FROM node:12-stretch
# alpine may be smaller, but comes with a 10-15% perf hit
COPY package.json /app/package.json
COPY out/ /app/out/
WORKDIR /app
RUN yarn install --production
RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)"
ENTRYPOINT [ "node", "/app/out/index.js" ]
CMD [ "--help" ]