1
0
Fork 0
js-utils/Dockerfile

14 lines
311 B
Docker
Raw Normal View History

2019-09-17 23:56:23 +00:00
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" ]