Update Dockerfile
Browse files- Dockerfile +6 -25
Dockerfile
CHANGED
@@ -1,26 +1,7 @@
|
|
1 |
-
FROM python:3.
|
2 |
-
|
3 |
-
EXPOSE 8501
|
4 |
-
|
5 |
-
USER root
|
6 |
-
|
7 |
WORKDIR /app
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
COPY
|
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 |
-
|
26 |
-
CMD ["streamlit", "run", "main.py", "--server.port=8501"]
|
|
|
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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|