yap #1
1 changed files with 5 additions and 8 deletions
13
Dockerfile
13
Dockerfile
|
@ -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/ .
|
||||
|
||||
|
|
Loading…
Reference in a new issue