docker: Determine nproc for darwin. (closes #52)
docker: Further separate apt and rust cache mounts. Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
f4e6807a3c
commit
fc3fcf4526
5 changed files with 13 additions and 17 deletions
|
|
@ -8,8 +8,8 @@ WORKDIR /
|
|||
COPY --link --from=input . .
|
||||
|
||||
RUN \
|
||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||
--mount=type=cache,dst=/var/cache,id=${var_cache},sharing=locked \
|
||||
--mount=type=cache,dst=/var/lib/apt,id=${var_lib_apt},sharing=locked \
|
||||
<<EOF
|
||||
set -eux
|
||||
apt-get -y -U install --no-install-recommends openssl gawk
|
||||
|
|
@ -156,8 +156,8 @@ ARG complement_run=".*"
|
|||
|
||||
WORKDIR /
|
||||
RUN \
|
||||
--mount=type=cache,dst=${var_cache},sharing=locked \
|
||||
--mount=type=cache,dst=${var_lib_apt},sharing=locked \
|
||||
--mount=type=cache,dst=/var/cache,id=${var_cache},sharing=locked \
|
||||
--mount=type=cache,dst=/var/lib/apt,id=${var_lib_apt},sharing=locked \
|
||||
--mount=type=cache,dst=/go/pkg/mod/cache,sharing=locked \
|
||||
<<EOF
|
||||
set -eux
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue