AkhilRaja commited on
Commit
7120ebe
·
verified ·
1 Parent(s): bd87d1f

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -0
Dockerfile ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use full Python 3.9 base image
2
+ FROM python:3.9
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Install dependencies
8
+ COPY requirements.txt .
9
+ RUN pip install --no-cache-dir -r requirements.txt
10
+
11
+ # Copy app
12
+ COPY app.py .
13
+
14
+ # Expose Hugging Face default port
15
+ ENV PORT=7860
16
+ EXPOSE 7860
17
+
18
+ # Run Streamlit
19
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]