Dockerfile: use python alpine and install dev libs

Otherwise, this doesn't seem to build on arm64
This commit is contained in:
lemoer 2024-12-29 01:39:45 +01:00
parent 625358ba55
commit 5d2d4ff560

View File

@ -1,9 +1,14 @@
# Basis-Image (kann je nach Python-Version angepasst werden) # Basis-Image (kann je nach Python-Version angepasst werden)
FROM python:3.13-slim FROM python:3.13-alpine
# Arbeitsverzeichnis erstellen # Arbeitsverzeichnis erstellen
WORKDIR /app WORKDIR /app
RUN apk update && apk add \
python3-dev \
gcc \
libc-dev
# Requirements in den Container kopieren # Requirements in den Container kopieren
COPY requirements.txt requirements.txt COPY requirements.txt requirements.txt