Update APT package lists before first attempt to install (#241)
* Update APT package lists before first attempt to install * Move setting of environment variable before first call to apt-get
This commit is contained in:
parent
caab516ea7
commit
4cd3d31946
@ -1,16 +1,18 @@
|
||||
FROM docker-base
|
||||
|
||||
# Dependencies for sonic-cfggen
|
||||
RUN apt-get install -y python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
||||
|
||||
## Make apt-get non-interactive
|
||||
ENV DEBIAN_FRONTEND=noninteractive
|
||||
|
||||
# Update APT package lists
|
||||
RUN apt-get update
|
||||
|
||||
# Dependencies for sonic-cfggen
|
||||
RUN apt-get -y install python-lxml python-jinja2 python-netaddr python-ipaddr python-yaml
|
||||
|
||||
## Install isc-dhcp-relay and clean up afterward
|
||||
RUN apt-get update \
|
||||
&& apt-get -y install isc-dhcp-relay \
|
||||
&& apt-get clean -y \
|
||||
&& apt-get autoclean -y \
|
||||
RUN apt-get -y install isc-dhcp-relay \
|
||||
&& apt-get clean -y \
|
||||
&& apt-get autoclean -y \
|
||||
&& apt-get autoremove -y
|
||||
|
||||
COPY ["isc-dhcp-relay.j2", "/usr/share/dhcp-relay/"]
|
||||
|
Loading…
Reference in New Issue
Block a user