1
0
Fork 0

fix(image): only copy bundle files into image

This commit is contained in:
Sean Sube 2022-02-06 12:28:39 -06:00
parent f7b82590f7
commit 65410ceaa3
3 changed files with 5 additions and 5 deletions

View File

@ -17,12 +17,12 @@ COPY yarn.lock /salty-dog/yarn.lock
RUN yarn install --production
# copy chunks, largest to smallest (entrypoint)
COPY out/src/ /salty-dog/out/
COPY out/bundle/ /salty-dog/out/bundle/
# set up as global cli tool
RUN yarn global add file:$(pwd)
COPY rules /salty-dog/rules
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
ENTRYPOINT [ "node", "/salty-dog/out/bundle/index.cjs" ]
CMD [ "--help" ]

View File

@ -18,12 +18,12 @@ COPY yarn.lock /salty-dog/yarn.lock
RUN yarn install --production
# copy build
COPY out/src/ /salty-dog/out/
COPY out/bundle/ /salty-dog/out/bundle/
# set up as global cli tool
RUN yarn global add file:$(pwd)
COPY rules /salty-dog/rules
ENTRYPOINT [ "node", "/salty-dog/out/index.js" ]
ENTRYPOINT [ "node", "/salty-dog/out/bundle/index.cjs" ]
CMD [ "--help" ]

View File

@ -21,7 +21,7 @@
"type": "module",
"main": "out/index.js",
"bin": {
"salty-dog": "out/index.js"
"salty-dog": "out/bundle/index.cjs"
},
"directories": {
"doc": "docs",