Emil25 commited on
Commit
7bb308f
1 Parent(s): fae70a1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +28 -6
Dockerfile CHANGED
@@ -1,7 +1,29 @@
1
- FROM python:3.8
2
- WORKDIR /app
3
- COPY requirements.txt ./requirements.txt
4
- RUN pip install -r requirements.txt
5
  EXPOSE 8501
6
- COPY . /app
7
- CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10
2
+
 
 
3
  EXPOSE 8501
4
+
5
+ USER root
6
+
7
+ WORKDIR /app
8
+
9
+ COPY scripts /app/scripts/
10
+
11
+ COPY main.py /app/
12
+
13
+ COPY requirements.txt /app/
14
+
15
+ RUN apt-get update && \
16
+ apt-get install -y python3-pip python3-venv
17
+
18
+ RUN python3 -m venv /app/venv
19
+
20
+ ENV PATH="/app/venv/bin:$PATH"
21
+
22
+ RUN pip install --upgrade pip && \
23
+ pip install --no-cache-dir --upgrade -r /app/requirements.txt
24
+
25
+ CMD streamlit run app.py \
26
+ --server.headless true \
27
+ --server.enableCORS false \
28
+ --server.enableXsrfProtection false \
29
+ --server.fileWatcherType none