Skip to content

Commit

Permalink
fix dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
matmut7 committed Jan 9, 2024
1 parent 4400eb5 commit d321dfa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions webapp/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ ARG NODE_VERSION=lts-alpine3.18@sha256:ef5e088232f803cadb83326edb4731015f42961d2

FROM node:NODE_VERSION as base
WORKDIR /app
ARG PRODUCTION

FROM base as dependencies
COPY yarn.lock .yarnrc.yml ./
Expand All @@ -16,9 +15,10 @@ COPY --from=dependencies /app/node_modules ./node_modules
RUN yarn build

# prepare runtime dependencies
RUN yarn --production && yarn cache clean
RUN yarn workspaces focus --production && yarn cache clean

FROM base as runner
ARG PRODUCTION
ENV NODE_ENV production

COPY --from=builder /app/public ./public
Expand Down

0 comments on commit d321dfa

Please sign in to comment.