uploadtemporary / Dockerfile
triflix's picture
Create Dockerfile
fde053a verified
raw
history blame contribute delete
308 Bytes
# Use a lightweight Node image
FROM node:20-alpine
# Set working directory
WORKDIR /app
# Install a simple static server
RUN npm install -g serve
# Copy the built files
COPY dist /app
# Expose Hugging Face Space port
EXPOSE 7860
# Command to serve the static site
CMD ["serve", "-s", ".", "-l", "7860"]