Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions backend/.dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
dist
coverage

#Omit secrets and logs
.env*
*.logs
#Omit code generated
src/generated
5 changes: 3 additions & 2 deletions backend/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@ FROM node:20-alpine AS builder
WORKDIR /app

COPY package*.json ./
RUN npm ci
RUN npm install

COPY tsconfig.json ./
COPY src ./src
COPY prisma ./prisma

RUN npm run build

Expand All @@ -17,7 +18,7 @@ WORKDIR /app
ENV NODE_ENV=production

COPY package*.json ./
RUN npm ci --only=production
RUN npm install --omit=dev

COPY --from=builder /app/dist ./dist

Expand Down
Loading