triflix's picture
Create Dockerfile
15738da verified
raw
history blame contribute delete
307 Bytes
# Use a lightweight Node image
FROM node:18-alpine
# Install http-server globally
RUN npm install -g http-server
# Create app directory
WORKDIR /app
# Copy static files
COPY dist/ .
# Expose port 7860 for Hugging Face Spaces
EXPOSE 7860
# Start the static server
CMD ["http-server", ".", "-p", "7860"]