Skip to content

Commit da2250b

Browse files
committed
fix(Dockerfile): correct WORKDIR placement and streamline .env file copy
1 parent 018f3b9 commit da2250b

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

Dockerfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,11 @@ FROM base AS runner
4545
ENV NODE_ENV="production"
4646
ENV NODE_OPTIONS="--enable-source-maps --max_old_space_size=4096"
4747

48+
WORKDIR /usr/src/app
49+
4850
COPY --chown=node:node --from=builder /usr/src/app/dist dist
4951
COPY --chown=node:node --from=builder /usr/src/app/node_modules ./node_modules
50-
51-
COPY --chown=node:node src/.env src/.env
52+
COPY --chown=node:node --from=builder /usr/src/app/src/.env src/.env
5253

5354

5455
RUN pnpm install --prod --frozen-lockfile --offline

0 commit comments

Comments
 (0)