Jakub Sokołowski 47f500e1ad
beacon-node-builds: refactor to rebuild after failures
Signed-off-by: Jakub Sokołowski <jakub@status.im>
2021-05-21 00:38:03 +02:00

19 lines
399 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 }}_${COMMIT} /usr/local/bin/{{ target }}
{% endfor %}
STOPSIGNAL SIGINT
ENTRYPOINT ["/usr/local/bin/{{ item.targets | first }}"]
CMD ["--help"]