Skip to content

Commit

Permalink
unrar: Fix broken package
Browse files Browse the repository at this point in the history
This commit retrieves unrar from alpine, as the build source is no longer valid.
  • Loading branch information
stickz committed Nov 28, 2024
1 parent bf56a00 commit 8f99ace
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
ARG MKTORRENT_VERSION=v1.1
ARG UNRAR_VER=7.1.1

# Create src image to retreive source files
FROM alpine:3.20 AS src
Expand All @@ -24,14 +23,7 @@ RUN apk --update --no-cache add \
curl-dev \
libtool \
linux-headers \
zlib-dev \
# Install unrar from source
&& cd /tmp \
&& wget https://www.rarlab.com/rar/unrarsrc-${UNRAR_VER}.tar.gz -O /tmp/unrar.tar.gz \
&& tar -xzf /tmp/unrar.tar.gz \
&& cd unrar \
&& make -f makefile \
&& install -Dm 755 unrar /usr/bin/unrar
zlib-dev

# Build and install mktorrent with pthreads
WORKDIR /usr/local/src/mktorrent
Expand Down Expand Up @@ -65,7 +57,11 @@ ENV UID=991 \
FILEBOT_CONFLICT=skip \
HTTP_AUTH=false

COPY --from=builder /usr/bin/unrar /usr/bin
COPY --from=builder /usr/bin

# unrar package is not available since alpine 3.15
RUN echo "@314 http://dl-cdn.alpinelinux.org/alpine/v3.14/main" >> /etc/apk/repositories \
&& apk --update --no-cache add unrar@314

RUN apk --update --no-cache add \
7zip \
Expand Down

0 comments on commit 8f99ace

Please sign in to comment.