feat: use prebuilt 7zip
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
ci/woodpecker/cron/woodpecker Pipeline was successful

This commit is contained in:
nyyu 2023-12-26 09:54:12 +01:00
parent f8d88af987
commit 7b231d88b0

View file

@ -1,19 +1,4 @@
FROM alpine:edge as builder FROM ghcr.io/linuxserver/baseimage-alpine:3.19
RUN echo 'http://dl-cdn.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories && \
apk add alpine-sdk doas uasm && \
echo 'permit nopass :wheel' > /etc/doas.d/doas.conf && \
git clone --depth=1 https://gitlab.alpinelinux.org/alpine/aports.git && \
git config --global user.name "build" && \
git config --global user.email "build@local" && \
abuild-keygen -a -i -n && \
cd aports/main/7zip && \
sed -i 's/DISABLE_RAR=1/USE_ASM=1/' APKBUILD && \
abuild -F && \
cd && \
cp packages/main/*/7zip-[0-9]*.apk 7zip.apk
FROM ghcr.io/linuxserver/baseimage-alpine:edge
# set version label # set version label
ARG DOCKER_IMAGE_CREATED ARG DOCKER_IMAGE_CREATED
ARG VERSION ARG VERSION
@ -21,11 +6,10 @@ LABEL build_version="pyload docker version:- ${VERSION} Build-date:- ${DOCKER_IM
ENV HOME="/config" ENV HOME="/config"
COPY --from=builder /root/7zip.apk .
RUN \ RUN \
apk add --no-cache --allow-untrusted 7zip.apk && \ wget https://nexus.nyyu.dev/repository/files/alpine/7zip-23.01-r0.apk && \
rm -f 7zip.apk && \ apk add --no-cache --allow-untrusted 7zip*.apk && \
rm -f 7zip*.apk && \
echo "**** install build packages ****" && \ echo "**** install build packages ****" && \
apk add --no-cache --virtual=build-dependencies \ apk add --no-cache --virtual=build-dependencies \
build-base \ build-base \