lab-signal-bot/Dockerfile
lemoer 5d2d4ff560 Dockerfile: use python alpine and install dev libs
Otherwise, this doesn't seem to build on arm64
2024-12-29 01:39:45 +01:00

23 lines
459 B
Docker

# Basis-Image (kann je nach Python-Version angepasst werden)
FROM python:3.13-alpine
# Arbeitsverzeichnis erstellen
WORKDIR /app
RUN apk update && apk add \
python3-dev \
gcc \
libc-dev
# Requirements in den Container kopieren
COPY requirements.txt requirements.txt
# Abhängigkeiten installieren
RUN pip install --no-cache-dir -r requirements.txt
# Quellcode in den Container kopieren
COPY . .
# Flask Server starten
CMD ["python", "-u", "main.py"]