LetsTryGPT/agent4-implementation
0
1FROM node:18-slim2 3WORKDIR /app4 5# Install curl for health checks6RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/*7 8# Copy package files9COPY package*.json ./10COPY tsconfig.json ./11 12# Install ALL dependencies (including devDependencies for building)13RUN npm ci14 15# Copy source code16COPY src ./src17 18# Build TypeScript to JavaScript19RUN npm run build20 21# Remove devDependencies after build22RUN npm prune --production23 24# Set environment variables25ENV NODE_ENV=production26ENV PORT=786027 28# Expose port29EXPOSE 786030 31# Health check32HEALTHCHECK --interval=30s --timeout=3s CMD curl -f http://localhost:7860/health || exit 133 34# Start the application35CMD ["node", "dist/index.js"]36 