Skip to content

Commit

Permalink
install unrar from lsio repo
Browse files Browse the repository at this point in the history
  • Loading branch information
aptalca committed Oct 8, 2023
1 parent 61619e4 commit 01ee4ef
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
17 changes: 5 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/unrar:latest as unrar

FROM ghcr.io/linuxserver/baseimage-ubuntu:jammy

# set version label
Expand All @@ -9,7 +11,6 @@ ARG LAZYLIBRARIAN_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"

ARG UNRAR_VERSION=6.2.10

RUN \
echo "**** install build packages ****" && \
Expand All @@ -26,17 +27,6 @@ RUN \
python3-minimal \
python3-openssl \
zlib1g && \
echo "**** install unrar from source ****" && \
mkdir /tmp/unrar && \
curl -o \
/tmp/unrar.tar.gz -L \
"https://www.rarlab.com/rar/unrarsrc-${UNRAR_VERSION}.tar.gz" && \
tar xf \
/tmp/unrar.tar.gz -C \
/tmp/unrar --strip-components=1 && \
cd /tmp/unrar && \
make && \
install -v -m755 unrar /usr/bin && \
echo "**** install app ****" && \
mkdir -p \
/app/lazylibrarian && \
Expand Down Expand Up @@ -72,6 +62,9 @@ RUN \
# add local files
COPY root/ /

# add unrar
COPY --from=unrar /usr/bin/unrar-ubuntu /usr/bin/unrar

# ports and volumes
EXPOSE 5299
VOLUME /config
6 changes: 5 additions & 1 deletion Dockerfile.aarch64
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# syntax=docker/dockerfile:1

FROM ghcr.io/linuxserver/unrar:arm64v8-latest as unrar

FROM ghcr.io/linuxserver/baseimage-ubuntu:arm64v8-jammy

# set version label
Expand All @@ -9,7 +11,6 @@ ARG LAZYLIBRARIAN_COMMIT
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="chbmb"

ARG UNRAR_VERSION=6.2.10

RUN \
echo "**** install build packages ****" && \
Expand Down Expand Up @@ -72,6 +73,9 @@ RUN \
# add local files
COPY root/ /

# add unrar
COPY --from=unrar /usr/bin/unrar-ubuntu /usr/bin/unrar

# ports and volumes
EXPOSE 5299
VOLUME /config
1 change: 1 addition & 0 deletions readme-vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ app_setup_block: |
The folks over at servarr.com wrote a good [write-up](https://wiki.servarr.com/docker-guide#consistent-and-well-planned-paths) on how to get started with this.
# changelog
changelogs:
- {date: "07.10.23:", desc: "Install unrar from [linuxserver repo](https://github.com/linuxserver/docker-unrar)."}
- {date: "10.08.23:", desc: "Bump unrar to 6.2.10."}
- {date: "01.07.23:", desc: "Deprecate armhf. As announced [here](https://www.linuxserver.io/blog/a-farewell-to-arm-hf)"}
- {date: "07.12.22:", desc: "Rebase to Ubuntu Jammy, migrate to s6v3. Use pyproject.toml for deps. Build unrar from source."}
Expand Down

0 comments on commit 01ee4ef

Please sign in to comment.