From 37140551d2b98951c69590930fe3ee9f2f980005 Mon Sep 17 00:00:00 2001 From: simon Date: Sat, 1 Jan 2022 22:16:34 +0700 Subject: [PATCH] improved build cache add nginx after pip --- Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8fc9d5b..f196318 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,9 +25,6 @@ RUN if [ "$TARGETPLATFORM" = "linux/amd64" ] ; then \ apt-get -y update && apt-get -y install --no-install-recommends ffmpeg && rm -rf /var/lib/apt/lists/* \ ; fi -# copy config files -COPY nginx.conf /etc/nginx/conf.d/ - # make folders RUN mkdir /cache RUN mkdir /youtube @@ -37,6 +34,9 @@ RUN mkdir /app COPY ./tubearchivist/requirements.txt /requirements.txt RUN pip install --no-cache-dir -r requirements.txt --src /usr/local/src +# copy config files +COPY nginx.conf /etc/nginx/conf.d/ + # copy application into container COPY ./tubearchivist /app COPY ./run.sh /app