Spaces:
Sleeping
Sleeping
File size: 381 Bytes
819bb91 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | FROM node:20-alpine
WORKDIR /app
# Install dependencies
COPY package*.json ./
RUN npm install
# Copy source code and build
COPY . .
RUN npm run build
# Install a simple static file server
RUN npm install -g serve
# Expose port required by Hugging Face Spaces
EXPOSE 7860
# Serve the 'dist' directory on port 7860
CMD ["serve", "-s", "dist", "-l", "7860"]
|