2021-08-04 13:46:42 +00:00
|
|
|
FROM python:3.9-slim
|
2022-03-06 07:44:12 +00:00
|
|
|
ENV TINI_VERSION v0.19.0
|
|
|
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
|
|
|
RUN chmod +x /tini
|
2021-08-04 13:46:42 +00:00
|
|
|
RUN echo "**** install system packages ****" \
|
|
|
|
&& apt-get update \
|
|
|
|
&& apt-get upgrade -y --no-install-recommends \
|
|
|
|
&& apt-get install -y tzdata --no-install-recommends \
|
|
|
|
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev
|
|
|
|
COPY requirements.txt /
|
|
|
|
RUN echo "**** install python packages ****" \
|
|
|
|
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& apt-get clean \
|
|
|
|
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
2021-01-20 21:37:59 +00:00
|
|
|
COPY . /
|
2021-08-04 13:46:42 +00:00
|
|
|
VOLUME /config
|
2022-03-06 07:44:12 +00:00
|
|
|
ENTRYPOINT ["/tini", "-s", "--"]
|
|
|
|
CMD ["python3", "plex_meta_manager.py"]
|