feat: switch to alpine image

This commit is contained in:
2023-12-30 15:18:54 +01:00
parent 22de6e759f
commit 6146029c00

View File

@@ -1,19 +1,15 @@
FROM python:3.9-slim-buster FROM python:3-alpine
RUN apt update RUN apk add --no-cache curl lzo-dev gcc libc-dev
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
WORKDIR /app WORKDIR /app
COPY ./ . 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 . 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 RUN ln -s /app/uploads/ /app/static/uploads