rpm-builder-docker/Dockerfile

19 lines
553 B
Docker
Raw Normal View History

FROM docker.io/library/rust:1.77.2-slim-buster AS build
2021-09-07 11:03:31 +00:00
2022-02-09 19:36:50 +00:00
ARG RPMBUILDER_VERSION=master
2021-09-07 11:03:31 +00:00
# install dependencies
2021-10-23 15:14:54 +00:00
RUN set -e && \
apt-get update --yes && \
apt-get install --yes curl git make
2021-09-07 11:03:31 +00:00
2021-10-23 15:14:54 +00:00
# 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
2021-09-07 11:03:31 +00:00
2021-10-23 15:14:54 +00:00
FROM docker.io/library/debian:buster-slim
2021-09-07 11:03:31 +00:00
2021-10-23 15:14:54 +00:00
COPY --from=build /rpm-builder/target/release/rpm-builder /usr/bin/rpm-builder
2021-09-07 11:03:31 +00:00
ENTRYPOINT [ "/usr/bin/rpm-builder" ]