mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-26 14:30:25 +00:00
18 lines
738 B
Docker
18 lines
738 B
Docker
FROM python:3.9-slim
|
|
ENV TINI_VERSION v0.19.0
|
|
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
|
RUN chmod +x /tini
|
|
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/*
|
|
COPY . /
|
|
VOLUME /config
|
|
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|