Skip to content

Commit

Permalink
Add installation process for docker in Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fuchs-fabian committed Nov 24, 2024
1 parent fd377e6 commit f1d4e73
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions src/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 ║
Expand Down

0 comments on commit f1d4e73

Please sign in to comment.