Update Dockerfile
Browse files- Dockerfile +28 -6
Dockerfile
CHANGED
@@ -1,7 +1,29 @@
|
|
1 |
-
FROM python:3.
|
2 |
-
|
3 |
-
COPY requirements.txt ./requirements.txt
|
4 |
-
RUN pip install -r requirements.txt
|
5 |
EXPOSE 8501
|
6 |
-
|
7 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|