diff --git a/Dockerfile b/Dockerfile index 074509b2..2e8f035d 100755 --- a/Dockerfile +++ b/Dockerfile @@ -1,16 +1,12 @@ FROM python:3.8 as build ADD app/requirements.txt /requirements.txt -RUN nslookup deb.debian.org && \ - nslookup pypi.org && \ - pip install --disable-pip-version-check --no-compile --no-cache-dir -q -r requirements.txt +RUN pip install --no-cache-dir -q -r requirements.txt FROM python:3.8-slim -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 +RUN 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 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