# Use lightweight Node.js Alpine image FROM node:18-alpine # Set working directory WORKDIR /app # Copy package files COPY package*.json ./ # Install production dependencies only RUN npm ci --only=production # Copy source code COPY src ./src # Expose Hugging Face port EXPOSE 7860 # Set NODE_ENV to production ENV NODE_ENV=production ENV PORT=7860 # Start the server CMD ["node", "src/server.js"]