Skip to content

Commit 0d1b3d6

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 05aca3a commit 0d1b3d6

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
@@ -395,6 +395,12 @@ RUN --mount=type=cache,from=apt-llvm,source=/etc/apt,target=/etc/apt,ro \
395395
ENV CC=clang-19 \
396396
CXX=clang++-19
397397

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

0 commit comments

Comments
 (0)