feat: add docker cli to ubuntu image
This commit is contained in:
parent
17449c6f72
commit
64ff7bf2e6
2 changed files with 15 additions and 0 deletions
|
@ -8,4 +8,6 @@ https://git.martin-riedl.de/ci/-/packages/container/ubuntu/24.04
|
||||||
|
|
||||||
- ca-certificates
|
- ca-certificates
|
||||||
- curl
|
- curl
|
||||||
|
- docker-ce-cli
|
||||||
|
- docker-buildx-plugin
|
||||||
- nodejs 22
|
- nodejs 22
|
||||||
|
|
|
@ -9,3 +9,16 @@ RUN apt-get update && apt-get install -y --no-install-recommends curl ca-certifi
|
||||||
apt-get install -y --no-install-recommends nodejs && \
|
apt-get install -y --no-install-recommends nodejs && \
|
||||||
rm -rf /var/lib/apt/lists/* && \
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
node -v
|
node -v
|
||||||
|
|
||||||
|
# install docker client
|
||||||
|
# https://docs.docker.com/engine/install/ubuntu/#install-using-the-repository
|
||||||
|
RUN install -m 0755 -d /etc/apt/keyrings && \
|
||||||
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc && \
|
||||||
|
chmod a+r /etc/apt/keyrings/docker.asc && \
|
||||||
|
echo \
|
||||||
|
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
|
||||||
|
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
|
||||||
|
tee /etc/apt/sources.list.d/docker.list > /dev/null && \
|
||||||
|
apt-get update && apt-get install -y --no-install-recommends docker-ce-cli docker-buildx-plugin && \
|
||||||
|
rm -rf /var/lib/apt/lists/* && \
|
||||||
|
docker -v \
|
||||||
|
|
Loading…
Add table
Reference in a new issue