From 0bb48cbd4317fa7832a877aa5b272943700f4a98 Mon Sep 17 00:00:00 2001 From: dgtlmoon Date: Sat, 3 Apr 2021 08:04:42 +0200 Subject: [PATCH] Tweaking build size thanks to https://github.com/hadolint/hadolint --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0a1e40fa..48e5cfe4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM python:3.8-slim COPY requirements.txt /tmp/requirements.txt -RUN apt-get update && apt-get install -y gcc libc-dev libxslt-dev zlib1g-dev g++ +RUN apt-get update && apt-get install -y gcc libc-dev libxslt-dev zlib1g-dev g++ --no-install-recommends && rm -rf /var/lib/apt/lists/* -RUN pip3 install -r /tmp/requirements.txt +RUN pip3 install --no-cache-dir -r /tmp/requirements.txt RUN [ ! -d "/app" ] && mkdir /app