Skip to content

Commit

Permalink
Simplify Dockerfile and ensure deps are installed
Browse files Browse the repository at this point in the history
3.10-slim has everything we need, and we don't use g++, nor git.
  • Loading branch information
ChrisLovering committed Dec 4, 2023
1 parent 191ef4b commit aef7487
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit aef7487

Please sign in to comment.