Skip to content

Commit

Permalink
Updated dockerfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
hkirat committed Jun 20, 2024
1 parent 6e27a3c commit f5e84db
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ node_modules
.git
.gitignore
.env.example
.env
14 changes: 14 additions & 0 deletions Dockerfile.prod
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM node:20-alpine
ARG DATABASE_URL

WORKDIR /usr/src/app

COPY . .

RUN npm install
RUN DATABASE_URL=$DATABASE_URL npx prisma generate
RUN DATABASE_URL=$DATABASE_URL npm run build

EXPOSE 3000

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

0 comments on commit f5e84db

Please sign in to comment.