derek-thomas
commited on
Commit
·
18999f3
1
Parent(s):
9d5e854
Removing /root/
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -64,12 +64,12 @@ USER root
|
|
64 |
|
65 |
# User Debian packages
|
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
|
|
|
64 |
|
65 |
# User Debian packages
|
66 |
## Security warning : Potential user code executed as root (build time)
|
67 |
+
RUN --mount=target=/root/packages.txt,source=packages.txt \
|
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=on_startup.sh,readwrite \
|
73 |
bash /root/on_startup.sh
|
74 |
|
75 |
RUN mkdir /data && chown user:user /data
|