diff --git a/src/Dockerfile b/src/Dockerfile index 8843e2f..ed355b3 100644 --- a/src/Dockerfile +++ b/src/Dockerfile @@ -40,6 +40,41 @@ RUN apt-get install -y \ RUN /tmp/repo_script_installer.bash "https://github.com/fuchs-fabian/simbashlog.git" "v1.1.3" +# ╔═════════════════════╦══════════════════════╗ +# ║ ║ +# ║ DOCKER ║ +# ║ ║ +# ╚═════════════════════╩══════════════════════╝ + +# Reference: https://docs.docker.com/engine/install/debian/#install-using-the-repository + +RUN echo "Installing 'docker'..." + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + curl \ + gnupg \ + lsb-release + +# Add Docker's official GPG key +RUN install -m 0755 -d /etc/apt/keyrings && \ + curl -fsSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc && \ + chmod a+r /etc/apt/keyrings/docker.asc + +# Add the repository to Apt sources +RUN echo \ + "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/debian \ + $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null + +# Install Docker packages +RUN apt-get update && apt-get install -y \ + docker-ce \ + docker-ce-cli \ + containerd.io \ + docker-buildx-plugin \ + docker-compose-plugin + # ╔═════════════════════╦══════════════════════╗ # ║ ║ # ║ DOMPOSY ║