Commit
•
bc5faf6
1
Parent(s):
733708b
Trying to copy to root
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -60,16 +60,17 @@ WORKDIR $HOME/app
|
|
60 |
USER root
|
61 |
|
62 |
# User Debian packages
|
63 |
-
COPY ./jupyterlab/
|
64 |
-
COPY ./jupyterlab/
|
|
|
65 |
|
66 |
## Security warning : Potential user code executed as root (build time)
|
67 |
-
RUN --mount=target=/root/packages.txt,source
|
68 |
apt-get update && \
|
69 |
xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
|
70 |
&& rm -rf /var/lib/apt/lists/*
|
71 |
|
72 |
-
RUN --mount=target=/root/on_startup.sh,source
|
73 |
bash /root/on_startup.sh
|
74 |
|
75 |
RUN mkdir /data && chown user:user /data
|
|
|
60 |
USER root
|
61 |
|
62 |
# User Debian packages
|
63 |
+
COPY ./jupyterlab/ /root/
|
64 |
+
#COPY ./jupyterlab/packages.txt packages.txt
|
65 |
+
#COPY ./jupyterlab/on_startup.sh on_startup.sh
|
66 |
|
67 |
## Security warning : Potential user code executed as root (build time)
|
68 |
+
RUN --mount=target=/root/packages.txt,source=/root/packages.txt \
|
69 |
apt-get update && \
|
70 |
xargs -r -a /root/packages.txt apt-get install -y --no-install-recommends \
|
71 |
&& rm -rf /var/lib/apt/lists/*
|
72 |
|
73 |
+
RUN --mount=target=/root/on_startup.sh,source=/root/on_startup.sh,readwrite \
|
74 |
bash /root/on_startup.sh
|
75 |
|
76 |
RUN mkdir /data && chown user:user /data
|