ci: dockerfile: avoid being asked question during apt-get

This commit is contained in:
Erik Sundell
2021-10-17 05:12:47 +02:00
parent 403f2cb5cb
commit 8054411e40

View File

@@ -2,7 +2,10 @@
ARG ubuntu_version=20.04 ARG ubuntu_version=20.04
FROM ubuntu:${ubuntu_version} FROM ubuntu:${ubuntu_version}
RUN apt-get update \ # DEBIAN_FRONTEND is set to avoid being asked for input and hang during build:
# https://anonoz.github.io/tech/2020/04/24/docker-build-stuck-tzdata.html
RUN DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get install --yes \ && apt-get install --yes \
systemd \ systemd \
curl \ curl \