File size: 429 Bytes
f44cf45 |
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 |
# Use Node.js runtime
FROM node:18-alpine
# Set working directory
WORKDIR /app
# Copy package files
COPY package*.json ./
# Install dependencies
RUN npm ci
# Copy source code
COPY . .
# Build the application
RUN npm run build
# Install serve to serve the built app
RUN npm install -g serve
# Expose port 7860 (required for Hugging Face Spaces)
EXPOSE 7860
# Start the application
CMD ["serve", "-s", "dist", "-p", "7860"] |