2019-06-16 02:59:37 +00:00
|
|
|
FROM node:11-stretch
|
|
|
|
|
2019-06-25 13:39:25 +00:00
|
|
|
# copy config, which changes rarely
|
2019-06-17 14:11:26 +00:00
|
|
|
COPY docs/config-docker.yml /root/.salty-dog.yml
|
|
|
|
|
2019-06-25 13:39:25 +00:00
|
|
|
# copy package first, to invalidate other layers when version changes
|
2019-06-16 02:59:37 +00:00
|
|
|
COPY package.json /salty-dog/package.json
|
2019-06-25 13:39:25 +00:00
|
|
|
|
|
|
|
COPY rules /salty-dog/rules
|
2019-06-16 03:04:41 +00:00
|
|
|
COPY out/bundle.js /salty-dog/out/bundle.js
|
2019-06-16 02:59:37 +00:00
|
|
|
|
|
|
|
ENTRYPOINT [ "node", "/salty-dog/out/bundle.js" ]
|