arnavarpit commited on
Commit
ebd98a0
·
verified ·
1 Parent(s): 91d1f57

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -0
Dockerfile ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ WORKDIR /app
4
+
5
+ # Copy requirements and install dependencies
6
+ COPY requirements.txt .
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+
9
+ # Copy application files
10
+ COPY app.py .
11
+
12
+ # Expose port for Streamlit
13
+ EXPOSE 7860
14
+
15
+ # Set environment variable for Streamlit
16
+ ENV STREAMLIT_SERVER_PORT=7860
17
+ ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
18
+
19
+ # Run the Streamlit app
20
+ CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]