derek-thomas HF staff commited on
Commit
bc5faf6
1 Parent(s): 733708b

Trying to copy to root

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -4
Dockerfile CHANGED
@@ -60,16 +60,17 @@ WORKDIR $HOME/app
60
  USER root
61
 
62
  # User Debian packages
63
- COPY ./jupyterlab/packages.txt packages.txt
64
- COPY ./jupyterlab/on_startup.sh on_startup.sh
 
65
 
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
 
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