Maheentouqeer1 commited on
Commit
c0415aa
·
verified ·
1 Parent(s): 81a3437

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +25 -0
Dockerfile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+ WORKDIR /app
4
+
5
+ RUN apt-get update && apt-get install -y \
6
+ build-essential \
7
+ curl \
8
+ && rm -rf /var/lib/apt/lists/*
9
+
10
+ COPY requirements.txt .
11
+ RUN pip install --no-cache-dir -r requirements.txt
12
+
13
+ COPY . .
14
+
15
+ EXPOSE 7860
16
+
17
+ ENV STREAMLIT_SERVER_PORT=7860
18
+ ENV STREAMLIT_SERVER_ADDRESS=0.0.0.0
19
+ ENV STREAMLIT_SERVER_HEADLESS=true
20
+ ENV STREAMLIT_BROWSER_GATHER_USAGE_STATS=false
21
+
22
+ CMD ["streamlit", "run", "app.py", \
23
+ "--server.port=7860", \
24
+ "--server.address=0.0.0.0", \
25
+ "--server.headless=true"]