Skip to content
This repository was archived by the owner on Jan 5, 2025. It is now read-only.

Commit 597a306

Browse files
committed
Use ARG Dockerfile keyword to set DEBIAN_FRONTEND
1 parent 8097027 commit 597a306

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

Dockerfile

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ FROM ubuntu:xenial
22

33
MAINTAINER Robin Smidsrød <[email protected]>
44

5-
RUN DEBIAN_FRONTEND=noninteractive apt-get -q -y update \
6-
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install apt-utils \
7-
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" dist-upgrade \
8-
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install isc-dhcp-server man python3 \
9-
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y autoremove \
10-
&& DEBIAN_FRONTEND=noninteractive apt-get -q -y clean \
5+
ARG DEBIAN_FRONTEND=noninteractive
6+
7+
RUN apt-get -q -y update \
8+
&& apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install apt-utils \
9+
&& apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" dist-upgrade \
10+
&& apt-get -q -y -o "DPkg::Options::=--force-confold" -o "DPkg::Options::=--force-confdef" install isc-dhcp-server man python3 \
11+
&& apt-get -q -y autoremove \
12+
&& apt-get -q -y clean \
1113
&& rm -rf /var/lib/apt/lists/*
1214

1315
COPY util/my_init.py /sbin/my_init

0 commit comments

Comments
 (0)