|
|
@ -20,6 +20,7 @@ FROM base AS builder |
|
|
|
COPY package.json yarn.lock tsconfig.json ./ |
|
|
|
RUN rm -rf node_modules && yarn install --frozen-lockfile |
|
|
|
COPY src src |
|
|
|
COPY patches patches |
|
|
|
|
|
|
|
# An image to build the app |
|
|
|
FROM builder AS build |
|
|
@ -28,6 +29,7 @@ RUN yarn run build |
|
|
|
# An image containing the built app and production dependencies |
|
|
|
FROM base AS prod |
|
|
|
COPY --from=build /app/build ./build |
|
|
|
COPY patches patches |
|
|
|
COPY package.json yarn.lock ./ |
|
|
|
RUN rm -rf node_modules && yarn install --production --frozen-lockfile |
|
|
|
CMD [ "yarn", "run", "start" ] |