Spit install into script and add step to install docker apt repo
Some checks failed
publish / docker (push) Failing after 48s
Some checks failed
publish / docker (push) Failing after 48s
This commit is contained in:
@@ -4,14 +4,8 @@ LABEL org.opencontainers.image.authors="matthew.pomes@pm.me"
|
|||||||
|
|
||||||
WORKDIR /root
|
WORKDIR /root
|
||||||
|
|
||||||
# common packages
|
COPY ./install-deps.sh .
|
||||||
RUN apt-get update && \
|
RUN bash ./install-deps.sh
|
||||||
apt-get install --no-install-recommends -y \
|
|
||||||
ca-certificates curl file \
|
|
||||||
build-essential musl-tools \
|
|
||||||
autoconf automake autotools-dev libtool xutils-dev \
|
|
||||||
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
|
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
|
||||||
|
|
||||||
# ENV SSL_VERSION=1.0.2u
|
# ENV SSL_VERSION=1.0.2u
|
||||||
|
|
||||||
|
|||||||
26
rustup/install-deps.sh
Normal file
26
rustup/install-deps.sh
Normal file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
apt update || exit 1
|
||||||
|
apt upgrade -y || exit 1
|
||||||
|
apt install --no-install-recommends -y ca-certificates curl || exit 1
|
||||||
|
apt install --no-install-recommends -y file || exit 1
|
||||||
|
apt install --no-install-recommends -y build-essential musl-tools || exit 1
|
||||||
|
apt install --no-install-recommends -y autoconf automake autotools-dev libtool xutils-dev || exit 1
|
||||||
|
|
||||||
|
# Docker key
|
||||||
|
install -m 0755 -d /etc/apt/keyrings || exit 1
|
||||||
|
curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc || exit 1
|
||||||
|
chmod a+r /etc/apt/keyrings/docker.asc || exit 1
|
||||||
|
tee /etc/apt/sources.list.d/docker.sources <<EOF
|
||||||
|
Types: deb
|
||||||
|
URIs: https://download.docker.com/linux/debian
|
||||||
|
Suites: $(. /etc/os-release && echo "$VERSION_CODENAME")
|
||||||
|
Components: stable
|
||||||
|
Architectures: $(dpkg --print-architecture)
|
||||||
|
Signed-By: /etc/apt/keyrings/docker.asc
|
||||||
|
EOF
|
||||||
|
|
||||||
|
apt update || exit 1
|
||||||
|
apt install --no-install-recommends -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin || exit 1
|
||||||
|
|
||||||
|
rm -rf /var/lib/apt/lists/* || exit 1
|
||||||
Reference in New Issue
Block a user