1
0
Fork 0

add: alpine dockerfile

This commit is contained in:
camo-f 2019-10-31 11:04:50 +01:00 committed by Sean Sube
parent d2c50a1353
commit bd3aa736e4
1 changed files with 22 additions and 0 deletions

22
Dockerfile.alpine Normal file
View File

@ -0,0 +1,22 @@
FROM node:11-alpine
# copy config, which changes rarely
COPY docs/config-docker.yml /root/.salty-dog.yml
# copy package first, to invalidate other layers when version changes
COPY package.json /salty-dog/package.json
# copy chunks, largest to smallest (entrypoint)
COPY out/vendor.js /salty-dog/out/vendor.js
COPY out/main.js /salty-dog/out/main.js
COPY out/index.js /salty-dog/out/index.js
# set up as global cli tool
WORKDIR /salty-dog
RUN yarn global add file:$(pwd)
ENV PATH="${PATH}:$(yarn global bin)"
COPY rules /salty-dog/rules
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
CMD [ "--help" ]