diff --git a/frontend/Dockerfile b/frontend/Dockerfile index daff0c5..944f265 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -35,11 +35,11 @@ FROM node:18.5-bullseye-slim # change working directory WORKDIR /app +COPY --from=builder /usr/src/app/package.json . +COPY --from=builder /usr/src/app/pnpm-lock.yaml . RUN corepack enable && corepack prepare pnpm@7.5.0 --activate && pnpm i # copy files from previous step COPY --from=builder /usr/src/app/build . -COPY --from=builder /usr/src/app/package.json . -COPY --from=builder /usr/src/app/pnpm-lock.yaml . COPY --from=builder /usr/src/app/node_modules ./node_modules # our app is running on port 3000 within the container, so need to expose it