From aef74875a113e86ecd24ce546c593c432198abeb Mon Sep 17 00:00:00 2001 From: Chris Lovering Date: Wed, 2 Nov 2022 11:46:18 +0000 Subject: [PATCH] Simplify Dockerfile and ensure deps are installed 3.10-slim has everything we need, and we don't use g++, nor git. --- Dockerfile | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 96a398fad45..4bb4a633602 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,9 @@ -FROM python:3.10 as py +FROM python:3.10-slim -FROM py as build - -RUN apt update && apt install -y g++ git +RUN apt-get update && apt-get install -y libpangocairo-1.0-0 && apt-get clean COPY requirements.txt / -RUN pip install --prefix=/inst -U -r /requirements.txt - -FROM py - -COPY --from=build /inst /usr/local +RUN pip install -U -r /requirements.txt ENV USING_DOCKER yes RUN useradd --system --no-create-home modmail