fix(image): only copy bundle files into image
This commit is contained in:
parent
f7b82590f7
commit
65410ceaa3
|
@ -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" ]
|
||||
|
|
|
@ -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" ]
|
||||
|
|
|
@ -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",
|
||||
|
|
Loading…
Reference in New Issue