This commit is contained in:
cirroskais 2024-03-24 01:27:52 -04:00
parent da68fb332b
commit 1a01d6576b
No known key found for this signature in database
GPG key ID: 5FC73EBF2678E33D

View file

@ -9,13 +9,10 @@ COPY package.json dev/
COPY yarn.lock dev/
RUN cd /usr/src/app/dev && yarn install
# Not needed as of now since adapter-node
# packs all of our dependencies for us.
# RUN mkdir prod
# COPY package.json prod/
# COPY yarn.lock prod/
# RUN cd /usr/src/app/prod && yarn install --production
RUN mkdir prod
COPY package.json prod/
COPY yarn.lock prod/
RUN cd /usr/src/app/prod && yarn install --production
FROM base AS build
@ -26,7 +23,7 @@ RUN yarn build
FROM base AS app
# COPY --from=install /usr/src/app/prod/node_modules node_modules
COPY --from=install /usr/src/app/prod/node_modules node_modules
COPY --from=build /usr/src/app/package.json .
COPY --from=build /usr/src/app/build/ .