av commited on
Commit
3fb154b
·
verified ·
1 Parent(s): 6d0c5a0

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +14 -0
Dockerfile ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # HF Spaces runs as a non-root user; make sure /tmp is writable (it always is)
4
+ WORKDIR /app
5
+
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ COPY main.py .
10
+
11
+ # HF Spaces expects the app on port 7860
12
+ EXPOSE 7860
13
+
14
+ CMD ["python", "main.py"]