Spaces:
Sleeping
Sleeping
Vela
commited on
Commit
·
9a8febd
1
Parent(s):
b726906
modified dockerfile
Browse files- Dockerfile +9 -4
Dockerfile
CHANGED
@@ -1,13 +1,18 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
RUN useradd -m -u 1000 user
|
4 |
-
USER user
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
|
|
|
|
|
|
|
|
|
|
9 |
COPY --chown=user ./requirements.txt requirements.txt
|
10 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
11 |
|
12 |
-
|
13 |
-
CMD ["streamlit", "run", "app/app.py", "--server.
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
# RUN useradd -m -u 1000 user
|
4 |
+
# USER user
|
5 |
ENV PATH="/home/user/.local/bin:$PATH"
|
6 |
|
7 |
WORKDIR /code
|
8 |
|
9 |
+
COPY . /code
|
10 |
+
|
11 |
+
RUN pip install --upgrade pip
|
12 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
+
|
14 |
COPY --chown=user ./requirements.txt requirements.txt
|
15 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
16 |
|
17 |
+
EXPOSE 7860
|
18 |
+
CMD ["streamlit", "run", "app/app.py", "--server.port=7860", "--server.address=0.0.0.0"]
|