🚑 Fixed Dockerfile

This commit is contained in:
Mawoka
2022-09-17 17:43:10 +02:00
parent b6f73dcedd
commit f2df991b1b
+2 -2
View File
@@ -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