feat: build rar support 7zip
This commit is contained in:
parent
80a9147657
commit
f5e1c8fe97
1 changed files with 18 additions and 1 deletions
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
|
FROM ghcr.io/linuxserver/baseimage-alpine:edge
|
||||||
|
|
||||||
# set version label
|
# set version label
|
||||||
|
@ -7,7 +21,11 @@ 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 && \
|
||||||
|
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 \
|
||||||
|
@ -22,7 +40,6 @@ RUN \
|
||||||
curl \
|
curl \
|
||||||
ffmpeg \
|
ffmpeg \
|
||||||
libjpeg-turbo \
|
libjpeg-turbo \
|
||||||
7zip \
|
|
||||||
python3 \
|
python3 \
|
||||||
sqlite \
|
sqlite \
|
||||||
tesseract-ocr && \
|
tesseract-ocr && \
|
||||||
|
|
Loading…
Add table
Reference in a new issue