Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
run: npm run format

- name: Run Tests with Coverage
run: npm test -- --coverage
run: npm test

- name: Run type checks
run: npm run typecheck
Expand Down
10 changes: 6 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ RUN npm ci
COPY . .
RUN npm run build

RUN npm prune --omit=dev

# ---------- Runtime stage ----------
FROM node:20-slim AS runner
WORKDIR /app
Expand All @@ -21,10 +23,10 @@ RUN useradd -m appuser
COPY validateEnvs.sh /usr/local/bin/validateEnvs.sh
RUN chmod +x /usr/local/bin/validateEnvs.sh

COPY package*.json ./
RUN npm install --omit=dev && npm cache clean --force

COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/src/config ./src/config
COPY --from=builder /app/src/migrations ./src/migrations
COPY --from=builder /app/.sequelizerc ./.sequelizerc

Expand All @@ -40,4 +42,4 @@ HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \

USER appuser

ENTRYPOINT ["/usr/local/bin/validateEnvs.sh"]
ENTRYPOINT ["/usr/local/bin/validateEnvs.sh"]
Loading
Loading