|
|
@ -3,7 +3,8 @@ ARG BRANCH_NAME=master
|
|
|
|
ENV BRANCH_NAME ${BRANCH_NAME}
|
|
|
|
ENV BRANCH_NAME ${BRANCH_NAME}
|
|
|
|
ENV TINI_VERSION v0.19.0
|
|
|
|
ENV TINI_VERSION v0.19.0
|
|
|
|
ENV PMM_DOCKER True
|
|
|
|
ENV PMM_DOCKER True
|
|
|
|
COPY requirements-lxml.txt requirements-lxml.txt
|
|
|
|
COPY requirements.txt requirements.txt
|
|
|
|
|
|
|
|
RUN sed -i -E "s/(lxml==.+)version/\15.1.1" requirements.txt
|
|
|
|
RUN echo "**** install system packages ****" \
|
|
|
|
RUN echo "**** install system packages ****" \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get upgrade -y --no-install-recommends \
|
|
|
|
&& apt-get upgrade -y --no-install-recommends \
|
|
|
@ -11,14 +12,14 @@ RUN echo "**** install system packages ****" \
|
|
|
|
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev libjpeg62-turbo-dev zlib1g-dev wget curl \
|
|
|
|
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev libjpeg62-turbo-dev zlib1g-dev wget curl \
|
|
|
|
&& wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-"$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
|
|
|
&& wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-"$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
|
|
|
&& chmod +x /tini \
|
|
|
|
&& chmod +x /tini \
|
|
|
|
&& pip3 install --no-cache-dir --upgrade --requirement /requirements-lxml.txt \
|
|
|
|
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
|
|
|
&& apt-get --purge autoremove gcc g++ libxml2-dev libxslt-dev libz-dev -y \
|
|
|
|
&& apt-get --purge autoremove gcc g++ libxml2-dev libxslt-dev libz-dev -y \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get check \
|
|
|
|
&& apt-get check \
|
|
|
|
&& apt-get -f install \
|
|
|
|
&& apt-get -f install \
|
|
|
|
&& apt-get autoclean \
|
|
|
|
&& apt-get autoclean \
|
|
|
|
&& rm -rf /requirements-lxml.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
|
|
|
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
|
|
|
COPY . /
|
|
|
|
COPY . /
|
|
|
|
VOLUME /config
|
|
|
|
VOLUME /config
|
|
|
|
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|
|
|
|
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|
|
|
|