Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update APT package lists before first attempt to install #241

Merged
merged 2 commits into from
Feb 2, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 9 additions & 7 deletions dockers/docker-dhcp-relay/Dockerfile
Original file line number Diff line number Diff line change
@@ -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/"]
Expand Down