Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
d4rkfella authored Nov 16, 2024
1 parent 9c8225d commit a5a6fef
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions apps/bazarr/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ FROM ghcr.io/linuxserver/baseimage-alpine:3.20
ARG BUILD_DATE
ARG VERSION
ARG BAZARR_VERSION
LABEL build_version="DarkfellaNET version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL build_version="DarkfellaNET version:- 1.4.5 Build-date:- 2024"
LABEL maintainer="Darkfella"
LABEL org.opencontainers.image.source="https://github.com/morpheus65535/bazarr"
# hard set UTC in case the user does not define it
Expand Down Expand Up @@ -45,29 +45,25 @@ RUN \
echo "**** install bazarr ****" && \
mkdir -p \
/app/bazarr/bin && \
if [ -z ${BAZARR_VERSION+x} ]; then \
BAZARR_VERSION=$(curl -sX GET "https://api.github.com/repos/morpheus65535/bazarr/releases/latest" \
| awk '/tag_name/{print $4;exit}' FS='[""]'); \
fi && \
curl -o \
/tmp/bazarr.zip -L \
"https://github.com/morpheus65535/bazarr/releases/download/${BAZARR_VERSION}/bazarr.zip" && \
"https://github.com/morpheus65535/bazarr/releases/download/v1.4.5/bazarr.zip" && \
unzip \
/tmp/bazarr.zip -d \
/app/bazarr/bin && \
rm -Rf /app/bazarr/bin/bin && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=${VERSION}\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
echo "UpdateMethod=docker\nBranch=master\nPackageVersion=v1.4.5\nPackageAuthor=linuxserver.io" > /app/bazarr/package_info && \
curl -o \
/app/bazarr/bin/postgres-requirements.txt -L \
"https://raw.githubusercontent.com/morpheus65535/bazarr/${BAZARR_VERSION}/postgres-requirements.txt" && \
"https://raw.githubusercontent.com/morpheus65535/bazarr/v1.4.5/postgres-requirements.txt" && \
echo "**** Install requirements ****" && \
pip install -U --no-cache-dir \
pip \
wheel && \
pip install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.20/ \
-r /app/bazarr/bin/requirements.txt \
-r /app/bazarr/bin/postgres-requirements.txt && \
printf "Linuxserver.io version: ${VERSION}\nBuild-date: ${BUILD_DATE}" > /build_version && \
printf "Linuxserver.io version: v1.4.5\nBuild-date: 2024" > /build_version && \
echo "**** clean up ****" && \
apk del --purge \
build-dependencies && \
Expand Down

0 comments on commit a5a6fef

Please sign in to comment.