80d0d2d43b
* Reduce docker images size. Install only required dependencies. * Update Dockerfile.j2
28 lines
558 B
Django/Jinja
Executable File
28 lines
558 B
Django/Jinja
Executable File
FROM docker-base
|
|
|
|
RUN apt-get update
|
|
|
|
COPY \
|
|
{% for deb in docker_syncd_cavm_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor -%}
|
|
debs/
|
|
|
|
RUN apt-get -y install libpcap-dev libxml2-dev python-dev swig libsensors4-dev libjemalloc1
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_syncd_cavm_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
|
|
COPY ["profile.ini", "/etc/ssw/AS7512/"]
|
|
|
|
## Clean up
|
|
RUN apt-get clean -y; apt-get autoclean -y; apt-get autoremove -y
|
|
RUN rm -rf /debs
|
|
|
|
ENTRYPOINT ["/bin/bash"]
|
|
CMD ["/usr/bin/start.sh"]
|