From 36d437cbfdbf2023f2d06b7cf10b18e02568eb99 Mon Sep 17 00:00:00 2001 From: Corentin Garcia Date: Wed, 15 May 2024 13:35:08 +0200 Subject: [PATCH] chore(docker): cache wheels when building --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index c5a5966..6461ab6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,19 @@ # Python base (venv and user) FROM python:3.12 AS base +# Install dependencies that don't have wheels +# for some architectures directly so that they can be cached +RUN /usr/local/bin/pip install --user \ + uvloop==0.19.0 \ + lxml==5.2.1 \ + httptools==0.6.1 \ + MarkupSafe==2.1.5 \ + pyyaml==6.0.1 + # Install dumb-init RUN apt-get update && apt-get install -y dumb-init +# Create user RUN useradd -m eddrit && \ mkdir /app/ && \ chown -R eddrit /app/