Update Dockerfile
Browse files- Dockerfile +8 -13
Dockerfile
CHANGED
@@ -2,7 +2,12 @@ FROM python:3.8.9
|
|
2 |
|
3 |
#WORKDIR /app
|
4 |
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
|
7 |
RUN apt-get update && \
|
8 |
apt-get upgrade -y && \
|
@@ -18,18 +23,8 @@ RUN pip3 install --no-cache-dir -r pre-requirements.txt
|
|
18 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
19 |
|
20 |
RUN rsync -av interactive_tutorials/ ./ --exclude=.git
|
21 |
-
|
22 |
-
|
23 |
-
# User
|
24 |
-
#RUN useradd -m -u 1000 user
|
25 |
-
#USER user
|
26 |
-
#ENV HOME /home/user
|
27 |
-
#ENV PATH $HOME/.local/bin:$PATH
|
28 |
-
|
29 |
-
#WORKDIR $HOME
|
30 |
-
#RUN mkdir app
|
31 |
-
#WORKDIR $HOME/app
|
32 |
-
#COPY . $HOME/app
|
33 |
|
34 |
EXPOSE 8501
|
35 |
CMD streamlit run app.py \
|
|
|
2 |
|
3 |
#WORKDIR /app
|
4 |
|
5 |
+
RUN useradd -m -u 1000 user
|
6 |
+
USER user
|
7 |
+
RUN chown -R user:user .
|
8 |
+
|
9 |
+
#COPY . .
|
10 |
+
COPY --chown=user:user . .
|
11 |
|
12 |
RUN apt-get update && \
|
13 |
apt-get upgrade -y && \
|
|
|
23 |
RUN pip3 install --no-cache-dir -r requirements.txt
|
24 |
|
25 |
RUN rsync -av interactive_tutorials/ ./ --exclude=.git
|
26 |
+
RUN chmod -R 755 ./tools
|
27 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
|
29 |
EXPOSE 8501
|
30 |
CMD streamlit run app.py \
|