File size: 358 Bytes
07aa34d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Base image
FROM python:3.10-slim

# Install unzip
RUN apt-get update && apt-get install -y unzip

# Create app directory
WORKDIR /app

# Copy and unzip static site
COPY out.zip /app/
RUN unzip out.zip -d /app/site

# Expose port for HF Spaces
EXPOSE 7860

# Start simple HTTP server
CMD ["python3", "-m", "http.server", "7860", "--directory", "/app/site"]