1
0
Fork 0

fix: copy unbundled output to containers

This commit is contained in:
Sean Sube 2023-01-01 19:13:51 -06:00
parent 51611ea0cf
commit e5b6565958
2 changed files with 4 additions and 6 deletions

View File

@ -13,12 +13,11 @@ COPY docs/config.yml /root/.cautious-journey.yml
# copy package first, to invalidate other layers when version changes
COPY package.json /cautious-journey/package.json
COPY yarn.lock /cautious-journey/yarn.lock
RUN yarn
# copy chunks, largest to smallest (entrypoint)
COPY out/vendor.js /cautious-journey/out/vendor.js
COPY out/main.js /cautious-journey/out/main.js
COPY out/index.js /cautious-journey/out/index.js
COPY out/src/ /cautious-journey/out/src/
# set up as global cli tool
RUN yarn global add file:$(pwd)

View File

@ -14,12 +14,11 @@ COPY docs/config.yml /root/.cautious-journey.yml
# copy package first, to invalidate other layers when version changes
COPY package.json /cautious-journey/package.json
COPY yarn.lock /cautious-journey/yarn.lock
RUN yarn
# copy chunks, largest to smallest (entrypoint)
COPY out/vendor.js /cautious-journey/out/vendor.js
COPY out/main.js /cautious-journey/out/main.js
COPY out/index.js /cautious-journey/out/index.js
COPY out/src/ /cautious-journey/out/src/
# set up as global cli tool
RUN yarn global add file:$(pwd)