-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile.ce
27 lines (23 loc) · 1.29 KB
/
Dockerfile.ce
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# rebased/repackaged base image that only updates existing packages
FROM mbentley/ubuntu:20.04
LABEL maintainer="Matt Bentley <[email protected]>"
ARG DOCKER_VER
ARG BUILDX_VER
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get update &&\
apt-get install -y apt-transport-https ca-certificates curl gnupg iproute2 kmod net-tools socat &&\
mkdir /etc/apt/keyrings &&\
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg &&\
echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu $(. /etc/os-release && echo "$VERSION_CODENAME") stable" > /etc/apt/sources.list.d/docker.list &&\
apt-get update &&\
apt-get install -y docker-ce &&\
apt-get purge -y docker-ce-rootless-extras docker-scan-plugin &&\
apt-get autoremove -y &&\
rm -rf /var/lib/apt/lists/* &&\
curl -fsSL -o /tmp/docker-buildx "https://github.com/docker/buildx/releases/download/${BUILDX_VER}/buildx-${BUILDX_VER}.linux-amd64" &&\
chmod +x /tmp/docker-buildx &&\
mv /tmp/docker-buildx /usr/libexec/docker/cli-plugins/docker-buildx
COPY entrypoint.sh /entrypoint.sh
VOLUME ["/var/lib/docker","/var/lib/containerd"]
ENTRYPOINT ["/entrypoint.sh"]
CMD ["dockerd","-s","overlay2","-H","unix:///var/run/docker.sock"]