Amittripipathi commited on
Commit
1074f7d
·
verified ·
1 Parent(s): b9c1abe

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+
2
+ # Base image
3
+ FROM python:3.10-slim
4
+
5
+ # Set working directory
6
+ WORKDIR /app
7
+
8
+ # Copy requirements and install
9
+ COPY requirements.txt ./requirements.txt
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ # Copy all files
13
+ COPY . .
14
+
15
+ # Streamlit specific config - listen on Hugging Face Space
16
+ ENV PORT=7860
17
+
18
+ EXPOSE 7860
19
+
20
+ # Run Streamlit app
21
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]