mirror of
https://github.com/linuxserver/docker-bazarr.git
synced 2026-02-20 01:02:49 +08:00
RE: https://github.com/morpheus65535/bazarr/issues/461 Only thing that stood out was we were missing `lxml` and we install `py-gevents` from the Alpine repository rather than via pip which means it's a little older. Switch to pip install.
54 lines
1.4 KiB
Docker
54 lines
1.4 KiB
Docker
FROM lsiobase/python:3.9
|
|
|
|
# set version label
|
|
ARG BUILD_DATE
|
|
ARG VERSION
|
|
ARG BAZARR_VERSION
|
|
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
|
|
LABEL maintainer="chbmb"
|
|
# hard set UTC in case the user does not define it
|
|
ENV TZ="Etc/UTC"
|
|
|
|
RUN \
|
|
echo "**** install build packages ****" && \
|
|
apk add --no-cache --virtual=build-dependencies \
|
|
g++ \
|
|
gcc \
|
|
libxml2-dev \
|
|
libxslt-dev \
|
|
python-dev && \
|
|
echo "**** install bazarr ****" && \
|
|
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.tar.gz -L \
|
|
"https://github.com/morpheus65535/bazarr/archive/${BAZARR_VERSION}.tar.gz" && \
|
|
mkdir -p \
|
|
/app/bazarr && \
|
|
tar xf \
|
|
/tmp/bazarr.tar.gz -C \
|
|
/app/bazarr --strip-components=1 && \
|
|
echo "**** Install requirements ****" && \
|
|
pip install --no-cache-dir -U -r \
|
|
/app/bazarr/requirements.txt && \
|
|
echo "**** fix backports warning in log ****" && \
|
|
if [ ! -e /usr/lib/python2.7/site-packages/backports/__init__.py ]; \
|
|
then \
|
|
touch /usr/lib/python2.7/site-packages/backports/__init__.py ; \
|
|
fi && \
|
|
echo "**** clean up ****" && \
|
|
apk del --purge \
|
|
build-dependencies && \
|
|
rm -rf \
|
|
/root/.cache \
|
|
/tmp/*
|
|
|
|
# add local files
|
|
COPY root/ /
|
|
|
|
# ports and volumes
|
|
EXPOSE 6767
|
|
VOLUME /config /movies /tv
|