From ab4715314195d3c1896b7997c98fdaccd3eb27f3 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 13 May 2020 19:56:35 +0100 Subject: [PATCH] Use slim version of docker container (#34) * Use slim version of docker container This massively reduces the size of the final container (330mb -> 60mb) * Install libcurl and libssl explicitly in container They appear to be missing from `-slim` variant containers Co-authored-by: Ben Busby Co-authored-by: Ben Busby --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index d5fa0a2..4a8acf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ -FROM python:3.8 +FROM python:3.8-slim WORKDIR /usr/src/app - +RUN apt-get update && apt-get install -y build-essential libcurl4-openssl-dev libssl-dev COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt