vieter/Dockerfile.ci

21 lines
443 B
Docker
Raw Normal View History

2022-01-23 10:53:58 +01:00
# vim: ft=dockerfile
# This image just has the required tools to download the binaries
FROM chewingbever/vlang:latest AS builder
ARG TARGETPLATFORM
ARG CI_COMMIT_SHA
WORKDIR /app
2022-01-23 11:13:47 +01:00
RUN curl --fail \
2022-01-23 10:53:58 +01:00
-o vieter \
"https://s3.rustybever.be/vieter/commits/${CI_COMMIT_SHA}/vieter-$(echo "${TARGETPLATFORM}" | sed 's:/:-:g')" && \
chmod +x vieter
FROM scratch
COPY --from=builder /app/vieter /bin/vieter
ENTRYPOINT ["/bin/vieter"]