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
39 changes: 39 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Version control and local tooling
.git
.github
.agents
.codex
.vscode
.idea
**/.DS_Store
**/Thumbs.db
*.swp

# Dependencies and generated output
**/node_modules
**/dist
**/coverage
/.angular
/out-tsc
/tmp
*.log

# Secrets and local environment files
.env
.env.*
**/.env
**/.env.*

# Angular frontend (the image deploys only /server)
/src
/public
/angular.json
/package.json
/package-lock.json
/tsconfig*.json
/eslint.config.js
/.postcssrc.json
/proxy.conf.json

# Backend files not needed to build or run the image
/server/test
25 changes: 25 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM node:24.18.0-bookworm-slim AS build

WORKDIR /app

COPY server/package.json server/package-lock.json ./
RUN npm ci

COPY server/tsconfig.json ./
COPY server/src ./src
RUN npm run build

FROM node:24.18.0-bookworm-slim AS runtime
Comment on lines +1 to +12

ENV NODE_ENV=production

WORKDIR /app

COPY server/package.json server/package-lock.json ./
RUN npm ci --omit=dev && npm cache clean --force

COPY --from=build --chown=node:node /app/dist ./dist

USER node

CMD ["node", "dist/index.js"]
Comment on lines +16 to +25