BramVanroy
commited on
Commit
·
222d86d
1
Parent(s):
1709c05
Update Dockerfile
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
FROM ubuntu:latest
|
|
|
|
|
2 |
ENV DEBIAN_FRONTEND=noninteractive
|
3 |
RUN apt-get -y update \
|
4 |
&& apt-get -y install build-essential curl git software-properties-common
|
@@ -10,10 +12,14 @@ RUN add-apt-repository ppa:deadsnakes/ppa \
|
|
10 |
RUN ln -s /usr/bin/python3.9 /usr/bin/python \
|
11 |
&& rm -rf /var/lib/apt/lists/*
|
12 |
|
13 |
-
|
|
|
|
|
|
|
14 |
|
|
|
15 |
RUN git clone https://github.com/BramVanroy/mateo-demo.git
|
16 |
-
WORKDIR /mateo-demo
|
17 |
|
18 |
RUN python -m pip install --no-cache-dir --upgrade pip && python -m pip install --no-cache-dir --upgrade .
|
19 |
|
@@ -26,7 +32,7 @@ ENV DEMO_MODE=""
|
|
26 |
EXPOSE $PORT
|
27 |
HEALTHCHECK CMD curl --fail http://$SERVER:$PORT$BASE/_stcore/health
|
28 |
|
29 |
-
WORKDIR /mateo-demo/src/mateo_st
|
30 |
|
31 |
CMD if [ -z "$BASE" ]; then \
|
32 |
cmd="streamlit run 01_🎈_MATEO.py --server.port $PORT --browser.serverAddress $SERVER --server.enableXsrfProtection false"; \
|
|
|
1 |
FROM ubuntu:latest
|
2 |
+
LABEL authors="Bram Vanroy"
|
3 |
+
|
4 |
ENV DEBIAN_FRONTEND=noninteractive
|
5 |
RUN apt-get -y update \
|
6 |
&& apt-get -y install build-essential curl git software-properties-common
|
|
|
12 |
RUN ln -s /usr/bin/python3.9 /usr/bin/python \
|
13 |
&& rm -rf /var/lib/apt/lists/*
|
14 |
|
15 |
+
RUN useradd -m -u 1000 user
|
16 |
+
USER user
|
17 |
+
ENV HOME /home/user
|
18 |
+
ENV PATH $HOME/.local/bin:$PATH
|
19 |
|
20 |
+
WORKDIR $HOME
|
21 |
RUN git clone https://github.com/BramVanroy/mateo-demo.git
|
22 |
+
WORKDIR $HOME/mateo-demo
|
23 |
|
24 |
RUN python -m pip install --no-cache-dir --upgrade pip && python -m pip install --no-cache-dir --upgrade .
|
25 |
|
|
|
32 |
EXPOSE $PORT
|
33 |
HEALTHCHECK CMD curl --fail http://$SERVER:$PORT$BASE/_stcore/health
|
34 |
|
35 |
+
WORKDIR $HOME/mateo-demo/src/mateo_st
|
36 |
|
37 |
CMD if [ -z "$BASE" ]; then \
|
38 |
cmd="streamlit run 01_🎈_MATEO.py --server.port $PORT --browser.serverAddress $SERVER --server.enableXsrfProtection false"; \
|