diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a415311 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,24 @@ +# Dockerfile +FROM ubuntu:22.04 + +RUN apt-get update && apt-get install -y \ + curl \ + gnupg \ + ca-certificates \ + lsb-release \ + && mkdir -m 0755 -p /etc/apt/keyrings \ + && curl -fsSL https://download.docker.com/linux/ + +RUN apt-get update +RUN apt-get install ca-certificates curl +RUN install -m 0755 -d /etc/apt/keyrings +RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc +RUN 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/ubuntu \ + $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \ + tee /etc/apt/sources.list.d/docker.list > /dev/null +RUN apt-get update +RUN apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \ No newline at end of file