fix(dockerfile): installing docker-ce-cli instead of docker
Build and Deploy / build-docker (push) Successful in 5m39s Details

This commit is contained in:
antifallobst 2023-12-17 22:39:38 +01:00
parent 066355cc53
commit f1782297a3
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 12 additions and 1 deletions

View File

@ -23,7 +23,18 @@ RUN SQLX_OFFLINE=true NC_AW_BACKUP_PATH=/data/backup NC_AW_HOST_PATH=/host cargo
FROM debian:bookworm-slim
RUN apt update; apt install -y docker
# Install Docker CE CLI
RUN apt-get update \
&& apt-get install -y apt-transport-https ca-certificates curl gnupg2 lsb-release \
&& curl -fsSL https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]')/gpg | apt-key add - 2>/dev/null \
&& echo "deb [arch=amd64] https://download.docker.com/linux/$(lsb_release -is | tr '[:upper:]' '[:lower:]') $(lsb_release -cs) stable" | tee /etc/apt/sources.list.d/docker.list \
&& apt-get update \
&& apt-get install -y docker-ce-cli
# Install Docker Compose
RUN LATEST_COMPOSE_VERSION=$(curl -sSL "https://api.github.com/repos/docker/compose/releases/latest" | grep -o -P '(?<="tag_name": ").+(?=")') \
&& curl -sSL "https://github.com/docker/compose/releases/download/${LATEST_COMPOSE_VERSION}/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose \
&& chmod +x /usr/local/bin/docker-compose
COPY --from=build /nerdcult_admin_worker/target/release/admin-worker /bin/admin-worker