Skip to content

Commit 3e8316d

Browse files
committed
chore: prevent more unnecessary files in the output images
1 parent 05ed584 commit 3e8316d

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.devcontainer/cpp/Dockerfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1818
RUN --mount=type=bind,source=.devcontainer/cpp/apt-requirements-base.json,target=/tmp/apt-requirements-base.json \
1919
--mount=type=cache,target=/var/cache/apt,sharing=locked \
2020
--mount=type=cache,target=/var/lib/apt,sharing=locked \
21+
--mount=type=cache,target=/var/log,sharing=locked \
2122
apt-get update && apt-get install -y --no-install-recommends jq \
2223
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements-base.json | xargs apt-get install -y --no-install-recommends
2324

@@ -40,6 +41,8 @@ ENV CCACHE_DIR=/cache/.ccache \
4041
RUN --mount=type=bind,source=.devcontainer/cpp/apt-requirements-clang.json,target=/tmp/apt-requirements-clang.json \
4142
--mount=type=cache,target=/var/cache/apt,sharing=locked \
4243
--mount=type=cache,target=/var/lib/apt,sharing=locked \
44+
--mount=type=cache,target=/var/log,sharing=locked \
45+
--mount=type=cache,target=/tmp,sharing=locked \
4346
wget -qO - https://apt.llvm.org/llvm-snapshot.gpg.key | gpg --dearmor -o /usr/share/keyrings/llvm-snapshot-keyring.gpg \
4447
&& wget -qO - https://dl.cloudsmith.io/public/mull-project/mull-stable/gpg.41DB35380DE6BD6F.key | gpg --dearmor -o /usr/share/keyrings/mull-project-mull-stable-archive-keyring.gpg \
4548
&& UBUNTU_CODENAME=$(grep '^UBUNTU_CODENAME=' /etc/os-release | cut -d= -f2) \

.devcontainer/rust/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SHELL ["/bin/bash", "-o", "pipefail", "-c"]
1515
RUN --mount=type=bind,source=.devcontainer/rust/apt-requirements-base.json,target=/tmp/apt-requirements-base.json \
1616
--mount=type=cache,target=/var/cache/apt,sharing=locked \
1717
--mount=type=cache,target=/var/lib/apt,sharing=locked \
18+
--mount=type=cache,target=/var/log,sharing=locked \
1819
apt-get update && apt-get install -y --no-install-recommends jq \
1920
&& jq -r 'to_entries | .[] | .key + "=" + .value' /tmp/apt-requirements-base.json | xargs apt-get install -y --no-install-recommends
2021

0 commit comments

Comments
 (0)