Skip to content

Commit

Permalink
FEAT: Optimized Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
thinley4 committed Oct 21, 2024
1 parent aa4595e commit 9fe7b52
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,15 @@ FROM node:20.12.0-alpine3.19

WORKDIR /app

COPY . .
COPY package* .
COPY ./prisma .

RUN cd web && npm install

RUN cd web && npx prisma generate

COPY . .

RUN cd web && npm run build

CMD ["npm", "run", "start"]

0 comments on commit 9fe7b52

Please sign in to comment.