mirror of
https://github.com/meisnate12/Plex-Meta-Manager
synced 2024-11-10 06:54:21 +00:00
fixed arm64 build and slimmed down image
Credits for the slimming goes to https://github.com/chazlarson
This commit is contained in:
parent
60168b0204
commit
e5e36f823a
1 changed files with 9 additions and 7 deletions
16
Dockerfile
16
Dockerfile
|
@ -1,18 +1,20 @@
|
||||||
FROM python:3.9-slim
|
FROM python:3.9-slim
|
||||||
ENV TINI_VERSION v0.19.0
|
ENV TINI_VERSION v0.19.0
|
||||||
ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini /tini
|
COPY . /
|
||||||
RUN chmod +x /tini
|
|
||||||
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 \
|
||||||
&& apt-get install -y tzdata --no-install-recommends \
|
&& apt-get install -y tzdata --no-install-recommends \
|
||||||
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev
|
&& apt-get install -y gcc g++ libxml2-dev libxslt-dev libz-dev wget \
|
||||||
COPY requirements.txt /
|
&& wget -O /tini https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-"$(dpkg --print-architecture | awk -F- '{ print $NF }')" \
|
||||||
RUN echo "**** install python packages ****" \
|
&& chmod +x /tini \
|
||||||
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
&& pip3 install --no-cache-dir --upgrade --requirement /requirements.txt \
|
||||||
&& apt-get autoremove -y \
|
&& apt-get --purge autoremove wget gcc g++ libxml2-dev libxslt-dev libz-dev -y \
|
||||||
&& apt-get clean \
|
&& apt-get clean \
|
||||||
|
&& apt-get update \
|
||||||
|
&& apt-get check \
|
||||||
|
&& apt-get -f install \
|
||||||
|
&& apt-get autoclean \
|
||||||
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
&& rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/*
|
||||||
COPY . /
|
|
||||||
VOLUME /config
|
VOLUME /config
|
||||||
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|
ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]
|
||||||
|
|
Loading…
Reference in a new issue