Jakub Sokołowski 055c74aa52
beacon-node-builds: set entrypoint based on targets
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2020-11-10 15:39:24 +01:00

19 lines
377 B
Django/Jinja

FROM debian:bullseye-slim
ARG COMMIT
RUN apt-get -qq update \
&& apt-get -qq -y install libpcre3-dev &>/dev/null \
&& apt-get -qq clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
{% for target in item.targets %}
COPY repo/build/{{ target }} /usr/local/bin/
{% endfor %}
STOPSIGNAL SIGINT
ENTRYPOINT ["/usr/local/bin/{{ item.targets | first }}"]
CMD ["--help"]