rpm-builder-docker/Dockerfile
CSRBot 0e5b4c0e1d
All checks were successful
continuous-integration/drone/pr Build is passing
continuous-integration/drone/push Build is passing
chore(deps): update docker.io/library/rust docker tag to v1.73.0
2023-10-06 05:05:18 +02:00

19 lines
553 B
Docker

FROM docker.io/library/rust:1.73.0-slim-buster AS build
ARG RPMBUILDER_VERSION=master
# install dependencies
RUN set -e && \
apt-get update --yes && \
apt-get install --yes curl git make
# compile musl and rpm-builder
RUN set -e && \
git clone -b ${RPMBUILDER_VERSION} https://github.com/Richterrettich/rpm-builder.git /rpm-builder && \
make --directory /rpm-builder build
FROM docker.io/library/debian:buster-slim
COPY --from=build /rpm-builder/target/release/rpm-builder /usr/bin/rpm-builder
ENTRYPOINT [ "/usr/bin/rpm-builder" ]