sonic-buildimage/dockers/docker-fpm/Dockerfile.j2
Marian Pritsak 66aebb329c [docker]: Change templating method to jinja2 (#115) (#153)
Move from sed to jinja2 for more readability.
2016-12-23 15:22:06 -08:00

22 lines
393 B
Django/Jinja

FROM docker-base
RUN apt-get update
RUN apt-get install -y libdbus-1-3 libdaemon0 libjansson4
COPY debs/ debs
RUN dpkg -i \
{% for deb in docker_fpm_debs.split(' ') -%}
debs/{{ deb }}{{' '}}
{%- endfor %}
## Clean up
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
RUN rm -rf /debs
COPY ["start.sh", "/usr/bin/"]
ENTRYPOINT /usr/bin/start.sh \
&& /bin/bash