From 6146029c00501697973359fa9b02b141661d270d Mon Sep 17 00:00:00 2001 From: Yannik Schmidt Date: Sat, 30 Dec 2023 15:18:54 +0100 Subject: [PATCH] feat: switch to alpine image --- Dockerfile | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index 49fa8a1..d0e26d2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,15 @@ -FROM python:3.9-slim-buster +FROM python:3-alpine -RUN apt update -RUN apt install python3-pip -y -RUN python3 -m pip install --upgrade pip -RUN apt install curl liblzo2-dev -y -RUN apt autoremove -y -RUN apt clean +RUN apk add --no-cache curl lzo-dev gcc libc-dev WORKDIR /app COPY ./ . -RUN python3 -m pip install waitress +RUN pip install --no-cache-dir -U pip +RUN pip install --no-cache-dir --break-system-packages waitress COPY req.txt . -RUN python3 -m pip install --no-cache-dir -r req.txt +RUN pip install --no-cache-dir -r req.txt RUN ln -s /app/uploads/ /app/static/uploads