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:
Joe LeVeque 2017-02-02 11:12:04 -08:00 committed by GitHub
parent caab516ea7
commit 4cd3d31946

View File

@ -1,16 +1,18 @@
FROM docker-base 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 ## Make apt-get non-interactive
ENV DEBIAN_FRONTEND=noninteractive 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 ## Install isc-dhcp-relay and clean up afterward
RUN apt-get update \ RUN apt-get -y install isc-dhcp-relay \
&& apt-get -y install isc-dhcp-relay \ && apt-get clean -y \
&& apt-get clean -y \ && apt-get autoclean -y \
&& apt-get autoclean -y \
&& apt-get autoremove -y && apt-get autoremove -y
COPY ["isc-dhcp-relay.j2", "/usr/share/dhcp-relay/"] COPY ["isc-dhcp-relay.j2", "/usr/share/dhcp-relay/"]