Spaces:
Runtime error
Runtime error
File size: 610 Bytes
e38330f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 | # Gateway Dockerfile
FROM node:20-alpine AS builder
WORKDIR /app
# Copy package files
COPY package*.json ./
RUN npm ci
# Copy source code
COPY . ./
# Build TypeScript
RUN npm run build
# Production stage
FROM node:20-alpine
WORKDIR /app
# Copy built files and package.json
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/package*.json ./
# Install production dependencies only
RUN npm ci --only=production
# Set environment
ENV NODE_ENV=production
ENV PORT=7860
ENV FRONTEND_URL=https://deepthoughtai-evo-frontend.hf.space
EXPOSE 7860
# Run the gateway
CMD ["node", "dist/gateway.js"]
|