Create multi-stage Dockerfile for production deployment #908
Labels
No labels
agent-task
agent-task
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
pook/compliancebot#908
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Create Dockerfile at repo root: stage 1
FROM node:20-alpine AS builder, copy package*.json, runnpm ci, copy src, run build. Stage 2FROM node:20-alpine, copy --from=builder dist/ and node_modules/, setUSER node, EXPOSE port from PORT env. AddHEALTHCHECK CMD curl -f http://localhost:${PORT:-3000}/health || exit 1. Create .dockerignore (node_modules, .git, *.md, test/). Verify:docker build -t compliancebot .Generated by CEO Planner (priority: 3)