From ed7d61b7821f17c38c0f75a96f9b9bd8b66527cd Mon Sep 17 00:00:00 2001 From: Chris Date: Wed, 6 Mar 2024 23:36:37 +0000 Subject: [PATCH] build requirements + system packages before copying app code --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 9f486e57..861f956b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ ARG BRANCH_NAME=master ENV BRANCH_NAME ${BRANCH_NAME} ENV TINI_VERSION v0.19.0 ENV PMM_DOCKER True -COPY . / +COPY requirements.txt requirements.txt RUN echo "**** install system packages ****" \ && apt-get update \ && apt-get upgrade -y --no-install-recommends \ @@ -19,5 +19,6 @@ RUN echo "**** install system packages ****" \ && apt-get -f install \ && apt-get autoclean \ && rm -rf /requirements.txt /tmp/* /var/tmp/* /var/lib/apt/lists/* + COPY . / VOLUME /config ENTRYPOINT ["/tini", "-s", "python3", "plex_meta_manager.py", "--"]