2017-02-07 20:11:19 -06:00
|
|
|
FROM docker-config-engine
|
2017-02-06 10:40:57 -06:00
|
|
|
|
|
|
|
## Make apt-get non-interactive
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
|
|
|
## Update APT package lists
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
## Install isc-dhcp-relay Debian package
|
|
|
|
RUN apt-get -y install isc-dhcp-relay
|
|
|
|
|
|
|
|
## Clean up
|
|
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
|
|
RUN rm -rf /debs
|
|
|
|
|
2017-02-18 19:50:29 -06:00
|
|
|
COPY ["isc-dhcp-relay.j2", "/usr/share/sonic/templates/"]
|
2017-02-06 10:40:57 -06:00
|
|
|
COPY ["config.sh", "/usr/bin/"]
|
|
|
|
|
|
|
|
ENTRYPOINT /usr/bin/config.sh \
|
|
|
|
&& service rsyslog start \
|
|
|
|
&& service isc-dhcp-relay start \
|
|
|
|
&& /bin/bash
|