Skip to content

Commit 72610e9

Browse files
committed
feat(Dockerfile): install docker-compose explicitly
Previously the devcontainer build infrastructure would install docker-compose in the container via scripts, but that script ended up requiring global changes to Python code in order to install docker-compose. Now we just install it here to avoid that problem.
1 parent fab0b75 commit 72610e9

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -397,6 +397,12 @@ RUN --mount=type=cache,from=apt-llvm,source=/etc/apt,target=/etc/apt,ro \
397397
ENV CC=clang-19 \
398398
CXX=clang++-19
399399

400+
# Install docker-compose since it breaks in the docker-debian script on arm64
401+
RUN --mount=type=cache,id=apt-docker,from=apt-base,source=/etc/apt,target=/etc/apt \
402+
--mount=type=cache,id=apt-docker,from=apt-base,source=/var/cache/apt,target=/var/cache/apt${APT_CACHE_SHARING} \
403+
--mount=type=cache,id=apt-docker,from=apt-base,source=/var/lib/apt/lists,target=/var/lib/apt/lists${APT_CACHE_SHARING} \
404+
DEBIAN_FRONTEND=noninteractive apt-get install -y docker-compose
405+
400406
# Use microsoft's Docker setup script to install the Docker CLI.
401407
#
402408
# A distinct cache is used because the script adds an apt repo that we don't

0 commit comments

Comments
 (0)