Initial Commit
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2021-09-07 13:03:31 +02:00
commit 7c6d57067b
11 changed files with 546 additions and 0 deletions

20
Dockerfile Normal file
View File

@ -0,0 +1,20 @@
FROM docker.io/library/rust:1.54.0-alpine3.13 AS build
ARG RPMBUILDER_VERSION=master
ARG MUSL_VERSION=1.2.0
# install dependencies
RUN apk update && \
apk add curl git make musl-dev
# compile rpm-builder
RUN git clone https://github.com/Richterrettich/rpm-builder.git && \
cd rpm-builder && \
git checkout ${RPMBUILDER_VERSION} && \
make build_linux && echo $PWD
FROM docker.io/library/alpine:3.14.2
COPY --from=build /rpm-builder/target/x86_64-unknown-linux-musl/release/rpm-builder /usr/bin/rpm-builder
ENTRYPOINT [ "/usr/bin/rpm-builder" ]