evo-gateway / Dockerfile
fraudTech's picture
Deploy gateway to Hugging Face Spaces
e38330f
Raw History Blame Contribute Delete
610 Bytes
# 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"]