fix: add docker CLI to ci-base image for Docker build/deploy in CI

This commit is contained in:
2026-05-11 00:03:18 -07:00
parent ee86827084
commit d1ebdc9988
+9 -1
View File
@@ -5,7 +5,15 @@
FROM mcr.microsoft.com/playwright:v1.59.1-jammy AS base FROM mcr.microsoft.com/playwright:v1.59.1-jammy AS base
# Install unzip (required for Bun installation) and other tools # Install unzip (required for Bun installation) and other tools
RUN apt-get update && apt-get install -y unzip && rm -rf /var/lib/apt/lists/* RUN apt-get update && apt-get install -y unzip ca-certificates curl gnupg lsb-release && rm -rf /var/lib/apt/lists/*
# Install Docker CLI (for building/pushing images in CI)
RUN install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg && \
chmod a+r /etc/apt/keyrings/docker.gpg && \
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null && \
apt-get update && apt-get install -y docker-ce-cli docker-compose-plugin && \
rm -rf /var/lib/apt/lists/*
# Install Bun (latest version) # Install Bun (latest version)
# Note: The playwright image already has Node.js pre-installed # Note: The playwright image already has Node.js pre-installed