File size: 332 Bytes
9470e9f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
# Use official Node.js image
FROM node:18-alpine
# Create app directory
WORKDIR /app
# Copy package files first (for caching)
COPY package*.json ./
# Install dependencies
RUN npm ci --only=production
# Copy source code
COPY . .
# HuggingFace expects port 7860
ENV PORT=7860
EXPOSE 7860
# Start the server
CMD ["npm", "start"]
|