Plex-Meta-Manager/Dockerfile

25 lines
1 KiB
Docker
Raw Normal View History

2022-12-14 15:57:40 +00:00
FROM python:3.11-slim-buster
2023-01-19 15:48:49 +00:00
ARG BRANCH_NAME=master
ENV BRANCH_NAME ${BRANCH_NAME}
2022-03-06 07:44:12 +00:00
ENV TINI_VERSION v0.19.0
2022-11-16 14:49:25 +00:00
ENV PMM_DOCKER True
COPY requirements.txt requirements.txt
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 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 }')" \
&& chmod +x /tini \
2021-08-04 13:46:42 +00:00
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
&& apt-get --purge autoremove gcc g++ libxml2-dev libxslt-dev libz-dev -y \
2021-08-04 13:46:42 +00:00
&& apt-get clean \
&& apt-get update \
&& apt-get check \
&& apt-get -f install \
&& apt-get autoclean \
2021-08-04 13:46:42 +00:00
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
COPY . /
2021-08-04 13:46:42 +00:00
VOLUME /config
2022-03-08 16:19:27 +00:00
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]