From 56a7e9a7b814ec85903da22b8f40d71721aac3b8 Mon Sep 17 00:00:00 2001 From: Luke Robles Date: Wed, 17 May 2023 11:34:46 -0700 Subject: [PATCH] fix order --- Dockerfile | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 33d3f792..67fa8dff 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,16 @@ FROM python:3.8 as build ADD app/requirements.txt /requirements.txt -RUN pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt && - nslookup deb.debian.org && - nslookup pypi.org +RUN nslookup deb.debian.org && + nslookup pypi.org && + pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt FROM python:3.8-slim -RUN apt-get update && apt-get install -y --no-install-recommends imagemagick && +RUN nslookup deb.debian.org && + nslookup pypi.org && + apt-get update && apt-get install -y --no-install-recommends imagemagick && apt-get autoremove -y && apt-get purge -y --auto-remove && - rm -rf /var/lib/apt/lists/* /root && - nslookup deb.debian.org && - nslookup pypi.org + rm -rf /var/lib/apt/lists/* /root COPY --from=0 /usr/local/lib/python3.8/site-packages /usr/local/lib/python3.8/site-packages ADD app /app CMD python /app/bot.py