Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
@@ -4,6 +4,8 @@ WORKDIR /code
|
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
RUN apt-get update && apt-get upgrade -y && apt-get install gcc -y
|
|
|
|
|
7 |
RUN apt-get update && apt-get install libgl1 -y
|
8 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
9 |
|
@@ -14,6 +16,7 @@ RUN apt-get update
|
|
14 |
RUN apt-get install --reinstall build-essential -y
|
15 |
RUN pip install pygco==0.0.16
|
16 |
|
|
|
17 |
RUN useradd -m -u 1000 user
|
18 |
|
19 |
USER user
|
@@ -25,4 +28,5 @@ WORKDIR $HOME/app
|
|
25 |
|
26 |
COPY --chown=user . $HOME/app
|
27 |
|
|
|
28 |
CMD ["streamlit", "run", "β_Introduction.py", "--server.port=7860", "--server.address=0.0.0.0"]
|
|
|
4 |
|
5 |
COPY ./requirements.txt /code/requirements.txt
|
6 |
RUN apt-get update && apt-get upgrade -y && apt-get install gcc -y
|
7 |
+
|
8 |
+
# Requirements for Pygco
|
9 |
RUN apt-get update && apt-get install libgl1 -y
|
10 |
RUN pip install --no-cache-dir -r /code/requirements.txt
|
11 |
|
|
|
16 |
RUN apt-get install --reinstall build-essential -y
|
17 |
RUN pip install pygco==0.0.16
|
18 |
|
19 |
+
# Make user
|
20 |
RUN useradd -m -u 1000 user
|
21 |
|
22 |
USER user
|
|
|
28 |
|
29 |
COPY --chown=user . $HOME/app
|
30 |
|
31 |
+
# Finish deployment and run Streamlit app
|
32 |
CMD ["streamlit", "run", "β_Introduction.py", "--server.port=7860", "--server.address=0.0.0.0"]
|