Skip to content

Commit 45b0416

Browse files
committed
chore(Dockerfile): update base image and install additional packages
- Updated the Dockerfile to use a new base image. - Installed additional necessary packages such as curl, wget, jq, zip, and unzip. - Organized the installation of packages into sections for better readability. - Removed duplicate lines in the Dockerfile.
1 parent 3545ef0 commit 45b0416

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

src/images/base/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ RUN export RUNNER_ARCH=${TARGETARCH} \
2828
&& rm -rf docker.tgz \
2929
&& mkdir -p /usr/local/lib/docker/cli-plugins \
3030
&& curl -fLo /usr/local/lib/docker/cli-plugins/docker-buildx \
31-
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${TARGETARCH}" \
31+
"https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-${TARGETARCH}" \
3232
&& chmod +x /usr/local/lib/docker/cli-plugins/docker-buildx
3333

3434
FROM mcr.microsoft.com/dotnet/runtime-deps:8.0
@@ -41,11 +41,16 @@ ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1
4141
ENV DOTNET_INSTALL_DIR=./.dotnet
4242

4343
RUN apt update -y && \
44-
apt install -y --no-install-recommends sudo lsb-release gpg-agent software-properties-common python3-launchpadlib &&\
45-
add-apt-repository ppa:git-core/ppa && \
46-
apt update -y && \
47-
apt install -y git && \
48-
rm -rf /var/lib/apt/lists/*
44+
# base packages
45+
apt install -y --no-install-recommends sudo lsb-release gpg-agent software-properties-common ca-certificates && \
46+
# install git
47+
apt install -y python3-launchpadlib && add-apt-repository ppa:git-core/ppa && apt update -y && apt install -y git && \
48+
# install base software
49+
apt install -y --no-install-recommends \
50+
curl wget jq \
51+
zip unzip \
52+
zip unzip \
53+
&& rm -rf /var/lib/apt/lists/*
4954

5055
RUN adduser --disabled-password --gecos "" --uid 1001 runner \
5156
&& groupadd docker --gid 123 \

src/images/default/Dockerfile

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,3 @@
11
FROM actions-runner-base
22

3-
RUN apt update -y && \
4-
apt install curl unzip -y && \
5-
rm -rf /var/lib/apt/lists/*
6-
73
USER runner

0 commit comments

Comments
 (0)