feat(build): include compiled src in image
This commit is contained in:
parent
90a7ba1cfe
commit
38e349a628
|
@ -18,6 +18,7 @@ COPY yarn.lock /salty-dog/yarn.lock
|
|||
RUN yarn install --production
|
||||
|
||||
# copy chunks, largest to smallest (entrypoint)
|
||||
COPY out/src/ /salty-dog/out/src/
|
||||
COPY out/bundle/ /salty-dog/out/bundle/
|
||||
|
||||
# set up as global cli tool
|
||||
|
|
|
@ -19,6 +19,7 @@ COPY yarn.lock /salty-dog/yarn.lock
|
|||
RUN yarn install --production
|
||||
|
||||
# copy build
|
||||
COPY out/src/ /salty-dog/out/src/
|
||||
COPY out/bundle/ /salty-dog/out/bundle/
|
||||
|
||||
# set up as global cli tool
|
||||
|
|
|
@ -28,7 +28,8 @@
|
|||
"test": "test"
|
||||
},
|
||||
"exports": {
|
||||
"app": "./out/src/app.js"
|
||||
"./app": "./out/src/app.js",
|
||||
"./bundle": "./out/bundle/index.cjs"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "make",
|
||||
|
|
Loading…
Reference in New Issue