-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(docker): don't share apt cache between arch build
- Loading branch information
Showing
4 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ ARG DEEPDETECT_DEFAULT_MODELS=true | |
# Install build dependencies | ||
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_cpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_cpu,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y python-dev apt-transport-https ca-certificates gnupg software-properties-common wget curl | ||
|
||
|
@@ -20,7 +20,7 @@ RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | |
# bug closed as won't fix as python2 is eol: https://github.com/docker/for-linux/issues/502 | ||
RUN cp /bin/true /usr/bin/pycompile | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_cpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_cpu,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y \ | ||
git \ | ||
|
@@ -119,7 +119,7 @@ LABEL description="DeepDetect deep learning server & API / ${DEEPDETECT_ARCH} ve | |
LABEL maintainer="[email protected]" | ||
|
||
# Install tools and dependencies | ||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_cpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_cpu,target=/var/lib/apt \ | ||
apt-get update -y && apt-get install -y \ | ||
wget \ | ||
curl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ ARG DEEPDETECT_DEFAULT_MODELS=true | |
# Install build dependencies | ||
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y python-dev apt-transport-https ca-certificates gnupg software-properties-common wget curl | ||
|
||
|
@@ -20,7 +20,7 @@ RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | |
# bug closed as won't fix as python2 is eol: https://github.com/docker/for-linux/issues/502 | ||
RUN cp /bin/true /usr/bin/pycompile | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y \ | ||
git \ | ||
|
@@ -119,7 +119,7 @@ LABEL description="DeepDetect deep learning server & API / ${DEEPDETECT_ARCH} ve | |
LABEL maintainer="[email protected]" | ||
|
||
# Install tools and dependencies | ||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu,target=/var/lib/apt \ | ||
apt-get update -y && apt-get install -y \ | ||
wget \ | ||
curl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ ARG DEEPDETECT_DEFAULT_MODELS=true | |
# Install build dependencies | ||
RUN rm -f /etc/apt/apt.conf.d/docker-clean; echo 'Binary::apt::APT::Keep-Downloaded-Packages "true";' > /etc/apt/apt.conf.d/keep-cache | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu_tensorrt,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu_tensorrt,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y python-dev apt-transport-https ca-certificates gnupg software-properties-common wget curl | ||
|
||
|
@@ -20,7 +20,7 @@ RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' | |
# bug closed as won't fix as python2 is eol: https://github.com/docker/for-linux/issues/502 | ||
RUN cp /bin/true /usr/bin/pycompile | ||
|
||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu_tensorrt,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu_tensorrt,target=/var/lib/apt \ | ||
export DEBIAN_FRONTEND=noninteractive && \ | ||
apt-get update -y && apt-get install -y \ | ||
git \ | ||
|
@@ -119,7 +119,7 @@ LABEL description="DeepDetect deep learning server & API / ${DEEPDETECT_ARCH} ve | |
LABEL maintainer="[email protected]" | ||
|
||
# Install tools and dependencies | ||
RUN --mount=type=cache,target=/var/cache/apt --mount=type=cache,target=/var/lib/apt \ | ||
RUN --mount=type=cache,id=apt_cache_gpu_tensorrt,target=/var/cache/apt --mount=type=cache,id=apt_lib_gpu_tensorrt,target=/var/lib/apt \ | ||
apt-get update -y && apt-get install -y \ | ||
wget \ | ||
curl \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters