Skip to content

Commit

Permalink
fix: Set DEBIAN_FRONTEND to noninteractive
Browse files Browse the repository at this point in the history
Without this change, the image build process hangs while waiting for
input from the Readline frontend, when configuring the tzdata package.

Set the DEBIAN_FRONTEND environment variable to noninteractive instead.

In addition, explicitly set TZ to UTC.
  • Loading branch information
fghaas committed Oct 4, 2024
1 parent 681d0ab commit 2321a25
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
FROM ubuntu:22.04
ENV TZ=Etc/UTC
ENV DEBIAN_FRONTEND=noninteractive
RUN mkdir -p /etc/ansible/roles/enrollmentreports /etc/ansible/group_vars
RUN apt-get update && \
apt install -y ansible git default-mysql-client rsync
Expand Down

0 comments on commit 2321a25

Please sign in to comment.