ubuntu 21.04 and official docker image

This commit is contained in:
Ben Potter 2021-07-04 01:05:56 +00:00
parent 68ddd70401
commit 296fccd2ee
No known key found for this signature in database
GPG Key ID: C39EC065353E70F2
3 changed files with 18 additions and 2 deletions

View File

@ -1,17 +1,19 @@
FROM ubuntu:20.04
FROM ubuntu:21.04
SHELL ["/bin/bash", "-c"]
# Install baseline packages
RUN apt-get update && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes \
apt-transport-https \
bash \
build-essential \
ca-certificates \
curl \
docker.io \
gnupg \
htop \
locales \
lsb-release \
man \
python3 \
python3-pip \
@ -26,6 +28,19 @@ RUN apt-get update && \
add-apt-repository ppa:git-core/ppa && \
DEBIAN_FRONTEND="noninteractive" apt-get install --yes git
# Copy configuration files to appropriate locations
COPY etc/apt/sources.list.d/* /etc/apt/sources.list.d/
COPY usr/share/keyrings/* /usr/share/keyrings/
# Docker (from official repository)
RUN apt-get update --quiet && \
apt-get install --no-install-recommends --yes --quiet \
containerd.io \
docker-ce \
docker-ce-cli && \
# Delete package cache to avoid consuming space in layer
apt-get clean
# Enables Docker starting with systemd
RUN systemctl enable docker

View File

@ -0,0 +1 @@
deb [signed-by=/usr/share/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu hirsute stable

Binary file not shown.