FROM lsiobase/alpine.python:3.8 # 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" RUN \ echo "**** install bazarr ****" && \ if [ -z ${BAZARR_VERSION+x} ]; then \ BAZARR_VERSION=$(curl -sX GET https://api.github.com/repos/morpheus65535/bazarr/commits/development \ | awk '/sha/{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 && \ rm -rf \ /tmp/* # add local files COPY root/ / # ports and volumes EXPOSE 6767 VOLUME /config /movies /tv