From 1ca04e9f2fb4a5ee33e2fb0863e6169ecb2c99a0 Mon Sep 17 00:00:00 2001 From: thorian93 Date: Sat, 1 Jun 2024 22:40:14 -0400 Subject: [PATCH] Improve Dockerfile. --- Dockerfile | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1222710..cd10038 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,18 +4,27 @@ WORKDIR /usr/src/app COPY requirements.txt ./ COPY ./ /usr/src/app/ -RUN pip install --upgrade pip wheel && \ - pip install --upgrade -r requirements.txt && \ +RUN pip install --no-cache-dir --upgrade pip wheel && \ + pip install --no-cache-dir --upgrade -r requirements.txt && \ pip install . RUN \ + rm -rf /usr/share/man/* && \ + rm -rf /root/.cache/pip/ && \ rm -rf /usr/src/app/.git* && \ rm -rf /usr/src/app/examples && \ rm -rf /usr/src/app/venv RUN apt-get purge -y \ make \ - gcc &&\ + git \ + wget \ + unzip \ + perl \ + gcc && \ apt-get autoremove -y && \ apt-get autoclean -y && \ apt-get clean all + + +CMD ["/bin/bash"]