SuriRaja commited on
Commit
07aa34d
·
verified ·
1 Parent(s): 1ad18d0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +18 -0
Dockerfile ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Base image
2
+ FROM python:3.10-slim
3
+
4
+ # Install unzip
5
+ RUN apt-get update && apt-get install -y unzip
6
+
7
+ # Create app directory
8
+ WORKDIR /app
9
+
10
+ # Copy and unzip static site
11
+ COPY out.zip /app/
12
+ RUN unzip out.zip -d /app/site
13
+
14
+ # Expose port for HF Spaces
15
+ EXPOSE 7860
16
+
17
+ # Start simple HTTP server
18
+ CMD ["python3", "-m", "http.server", "7860", "--directory", "/app/site"]