Skip to content

Commit

Permalink
build(Dockerfile): add copy env step
Browse files Browse the repository at this point in the history
  • Loading branch information
jokj624 committed Sep 1, 2024
1 parent e10aa58 commit 3b53827
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ WORKDIR /usr/src/app

COPY package.json ./
COPY prisma ./
COPY .env ./

RUN ls -a && yarn

Expand All @@ -21,6 +22,7 @@ RUN yarn build
FROM node:20-alpine

COPY --from=base /usr/src/app/package.json ./
COPY --from=base /usr/src/app/.env ./
COPY --from=dev /usr/src/app/dist/ ./dist/
COPY --from=dev /usr/src/app/node_modules/ ./node_modules/

Expand Down

0 comments on commit 3b53827

Please sign in to comment.