24 lines
450 B
Django/Jinja
Executable File
24 lines
450 B
Django/Jinja
Executable File
FROM docker-base
|
|
|
|
RUN apt-get update
|
|
|
|
COPY debs /debs
|
|
|
|
RUN apt-get install -y libxml2
|
|
|
|
RUN dpkg -i \
|
|
{% for deb in docker_syncd_mlnx_debs.split(' ') -%}
|
|
debs/{{ deb }}{{' '}}
|
|
{%- endfor %}
|
|
|
|
COPY ["start.sh", "/usr/bin/"]
|
|
COPY ["mlnx-fw-upgrade.sh", "/usr/bin/"]
|
|
COPY ["/debs/fw-SPC.mfa", "/etc/mlnx/"]
|
|
|
|
## 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"]
|