feat: build rar support 7zip
This commit is contained in:
parent
8d97026612
commit
239153b996
19
Dockerfile
19
Dockerfile
@ -1,3 +1,17 @@
|
||||
FROM alpine:edge as builder
|
||||
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/community/7zip && \
|
||||
sed -i 's/DISABLE_RAR=1/USE_ASM=1/' APKBUILD && \
|
||||
abuild -F && \
|
||||
cd && \
|
||||
cp packages/community/*/7zip-[0-9]*.apk 7zip.apk
|
||||
|
||||
FROM ghcr.io/linuxserver/baseimage-alpine:edge
|
||||
|
||||
# set version label
|
||||
@ -7,7 +21,11 @@ LABEL build_version="pyload docker version:- ${VERSION} Build-date:- ${DOCKER_IM
|
||||
|
||||
ENV HOME="/config"
|
||||
|
||||
COPY --from=builder /root/7zip.apk .
|
||||
|
||||
RUN \
|
||||
apk add --no-cache --allow-untrusted 7zip.apk && \
|
||||
rm -f 7zip.apk && \
|
||||
echo "**** install build packages ****" && \
|
||||
apk add --no-cache --virtual=build-dependencies \
|
||||
build-base \
|
||||
@ -22,7 +40,6 @@ RUN \
|
||||
curl \
|
||||
ffmpeg \
|
||||
libjpeg-turbo \
|
||||
7zip \
|
||||
python3 \
|
||||
sqlite \
|
||||
tesseract-ocr && \
|
||||
|
Loading…
Reference in New Issue
Block a user