mirror of
https://github.com/ruvnet/ruflo.git
synced 2026-11-24 22:28:10 +09:00
🔖 Checkpoint: Edit /workspaces/claude-code-flow/user-service/Dockerfile
This commit is contained in:
1 parent
c08fc99694
commit
98ef4fe3b2
4 files changed
+63
No files matched your search
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250806-140525", "file": "/workspaces/claude-code-flow/user-service/tests/integration/user.routes.test.ts", "timestamp": "2025-08-06T14:05:25Z", "type": "pre-edit", "original_branch": "alpha-88"}
|
||||
@@ -0,0 +1 @@
|
||||
{"tag": "checkpoint-20250806-140527", "file": "/workspaces/claude-code-flow/user-service/tests/integration/user.routes.test.ts", "timestamp": "2025-08-06T14:05:27Z", "type": "post-edit", "branch": "alpha-88", "diff_summary": " .claude-flow/metrics/performance.json | 2 +- .claude-flow/metrics/system-metrics.json | 2572 +------------------- .claude-flow/metrics/task-metrics.json | 6 +- .claude/checkpoints/1754489077.json | 1 + .claude/checkpoints/1754489079.json | 1 + benchmark/.claude-flow/metrics/performance.json | 2 +- benchmark/.claude-flow/metrics/task-metrics.json | 6 +- benchmark/.claude/checkpoints/1754489088.json | 1 + benchmark/.claude/checkpoints/1754489098.json | 1 + benchmark/.claude/checkpoints/1754489119.json | 1 + claude-flow-wiki | 0 user-service/tests/integration/user.routes.test.ts | 251 ++ 12 files changed, 374 insertions(+), 2470 deletions(-) "}
|
||||
@@ -0,0 +1 @@
|
||||
{"branch": "checkpoint/pre-edit-20250806-140536", "file": "/workspaces/claude-code-flow/claude-flow-wiki/Benchmark-System.md", "timestamp": "2025-08-06T14:05:37Z", "type": "pre-edit", "original_branch": "alpha-88"}
|
||||
@@ -0,0 +1,60 @@
|
||||
# Build stage
|
||||
FROM node:20-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
COPY tsconfig.json ./
|
||||
|
||||
# Install dependencies
|
||||
RUN npm ci
|
||||
|
||||
# Copy source code
|
||||
COPY src ./src
|
||||
|
||||
# Build application
|
||||
RUN npm run build
|
||||
|
||||
# Production stage
|
||||
FROM node:20-alpine
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install dumb-init for proper signal handling
|
||||
RUN apk add --no-cache dumb-init
|
||||
|
||||
# Create non-root user
|
||||
RUN addgroup -g 1001 -S nodejs && \
|
||||
adduser -S nodejs -u 1001
|
||||
|
||||
# Copy package files
|
||||
COPY package*.json ./
|
||||
|
||||
# Install production dependencies only
|
||||
RUN npm ci --only=production && \
|
||||
npm cache clean --force
|
||||
|
||||
# Copy built application
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
# Copy environment example
|
||||
COPY .env.example .env.example
|
||||
|
||||
# Create logs directory
|
||||
RUN mkdir -p logs && \
|
||||
chown -R nodejs:nodejs /app
|
||||
|
||||
# Switch to non-root user
|
||||
USER nodejs
|
||||
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD node -e "require('http').get('http://localhost:3000/health', (r) => r.statusCode === 200 ? process.exit(0) : process.exit(1))"
|
||||
|
||||
# Start application with dumb-init
|
||||
ENTRYPOINT ["dumb-init", "--"]
|
||||
CMD ["node", "dist/index.js"]
|
||||
Reference in new issue
Block a user