ci: dockerfile: apply apt-get best-practices

This commit is contained in:
Erik Sundell
2021-10-17 03:31:57 +02:00
parent 922bfad0f5
commit 403f2cb5cb

View File

@@ -2,9 +2,13 @@
ARG ubuntu_version=20.04 ARG ubuntu_version=20.04
FROM ubuntu:${ubuntu_version} FROM ubuntu:${ubuntu_version}
RUN apt-get update --yes RUN apt-get update \
&& apt-get install --yes \
RUN apt-get install --yes systemd curl git sudo systemd \
curl \
git \
sudo \
&& rm -rf /var/lib/apt/lists/*
# Kill all the things we don't need # Kill all the things we don't need
RUN find /etc/systemd/system \ RUN find /etc/systemd/system \