derek-thomas HF staff commited on
Commit
d5e15f7
1 Parent(s): 9a02b98

Updating build context path

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
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=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
@@ -81,7 +81,7 @@ RUN mkdir /data && chown user:user /data
81
  USER user
82
 
83
  # Python packages
84
- RUN --mount=target=requirements.txt,source=requirements.txt \
85
  pip install --no-cache-dir --upgrade -r requirements.txt
86
 
87
  RUN chmod +x start_server.sh
 
64
 
65
  # User Debian packages
66
  ## Security warning : Potential user code executed as root (build time)
67
+ RUN --mount=target=/root/packages.txt,source=jupyterlab/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=jupyterlab/on_startup.sh,readwrite \
73
  bash /root/on_startup.sh
74
 
75
  RUN mkdir /data && chown user:user /data
 
81
  USER user
82
 
83
  # Python packages
84
+ RUN --mount=target=requirements.txt,source=jupyterlab/requirements.txt \
85
  pip install --no-cache-dir --upgrade -r requirements.txt
86
 
87
  RUN chmod +x start_server.sh