From 1860cba273c00117590d1c2de8214479c2e3bdf5 Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 30 Dec 2023 13:22:17 +0100 Subject: [PATCH] feat: switch to alpine image --- Dockerfile | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55bd0b8..536b8b1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,13 @@ -FROM python:3.9-slim-bookworm - -RUN apt update -RUN apt install python3-pip -y -RUN python3 -m pip install --upgrade pip -RUN apt install curl -y -RUN apt autoremove -y -RUN apt clean +FROM alpine +RUN apk add --no-cache py3-pip +RUN apk add --no-cache curl WORKDIR /app -RUN python3 -m pip install waitress +RUN python3 -m pip install --no-cache-dir --break-system-packages waitress COPY req.txt . -RUN python3 -m pip install --no-cache-dir -r req.txt +RUN python3 -m pip install --no-cache-dir --break-system-packages -r req.txt # precreate database directory for mount (will otherwise be created at before_first_request) COPY ./ .