Skip to content

chore(deploy): add backend Docker configuration - #18

Merged
kamycoding merged 1 commit into
mainfrom
chore/apply-build-deployment
Aug 9, 2026
Merged

chore(deploy): add backend Docker configuration#18
kamycoding merged 1 commit into
mainfrom
chore/apply-build-deployment

Conversation

@kamycoding

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI lite review requested due to automatic review settings August 9, 2026 16:04
@netlify

netlify Bot commented Aug 9, 2026

Copy link
Copy Markdown

Deploy Preview for fanciful-cannoli-268c0c ready!

Name Link
🔨 Latest commit 42bf0b8
🔍 Latest deploy log https://app.netlify.com/projects/fanciful-cannoli-268c0c/deploys/6a78a52277d83c0009733076
😎 Deploy Preview https://deploy-preview-18--fanciful-cannoli-268c0c.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@kamycoding
kamycoding merged commit 58827bc into main Aug 9, 2026
3 of 4 checks passed
@kamycoding
kamycoding deleted the chore/apply-build-deployment branch August 9, 2026 16:05

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds container build/deploy scaffolding for the backend Node/TypeScript service so it can be built and run as a Docker image.

Changes:

  • Introduces a multi-stage Dockerfile that builds the server TypeScript output and runs it in a slim runtime image.
  • Adds a .dockerignore to keep frontend files, secrets, and build artifacts out of the Docker build context.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
Dockerfile Multi-stage Node image to build /server and run dist/index.js in production.
.dockerignore Reduces Docker context size and prevents secrets/frontend files from being sent to the builder.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Dockerfile
Comment on lines +1 to +12
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 thread Dockerfile
Comment on lines +16 to +25
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"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants