Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
jupyter-base
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Emmanuel Bruno
jupyter-base
Commits
4b736768
Commit
4b736768
authored
2 years ago
by
Emmanuel Bruno
Browse files
Options
Downloads
Patches
Plain Diff
locks cache
parent
69addbde
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+6
-6
6 additions, 6 deletions
Dockerfile
with
6 additions
and
6 deletions
Dockerfile
+
6
−
6
View file @
4b736768
...
...
@@ -17,9 +17,9 @@ RUN echo "I am running on $BUILDPLATFORM, building for $TARGETPLATFORM"
# Sets a cache for pip packages
#ENV PIP_CACHE_DIR=/var/cache/buildkit/pip
ENV
PIP_CACHE_DIR=/home/jovyan/work/var/cache/buildkit/pip/
${TARGETPLATFORM}
ENV
APT_CACHE_DIR=/var/cache/apt/
${TARGETPLATFORM}-cache
ENV
CONDA_PKG_DIR=/opt/conda/pkgs/
${TARGETPLATFORM}
ENV
PIP_CACHE_DIR=/home/jovyan/work/var/cache/buildkit/pip/
ENV
APT_CACHE_DIR=/var/cache/apt/
ENV
CONDA_PKG_DIR=/opt/conda/pkgs/
# We need to remove the default `docker-clean` to avoid cache cleaning
...
...
@@ -31,7 +31,7 @@ RUN mkdir -p ${PIP_CACHE_DIR} && \
COPY
Artefacts/apt_packages /tmp/
RUN
--mount
=
type
=
cache,target
=
${
APT_CACHE_DIR
}
\
RUN
--mount
=
type
=
cache,target
=
${
APT_CACHE_DIR
}
,sharing
=
locked
\
apt-get update
&&
\
apt-get
install
-qq
--yes
--no-install-recommends
\
$(
cat
/tmp/apt_packages
)
&&
\
...
...
@@ -88,8 +88,8 @@ COPY Artefacts/pip_jupyterlab_packages /tmp/
# Codeserver extensions to install
COPY
Artefacts/codeserver_extensions /tmp/
RUN
--mount
=
type
=
cache,target
=
${
PIP_CACHE_DIR
}
\
--mount
=
type
=
cache,target
=
${
CONDA_PKG_DIR
}
\
RUN
--mount
=
type
=
cache,target
=
${
PIP_CACHE_DIR
}
,sharing
=
locked
\
--mount
=
type
=
cache,target
=
${
CONDA_PKG_DIR
}
,sharing
=
locked
\
echo
-e
"
\e
[93m***** Install Jupyter Lab Extensions ****
\e
[38;5;241m"
&&
\
pip
install
--quiet
--upgrade
\
$(
cat
/tmp/pip_jupyterlab_packages
)
&&
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment