forked from LeineLab-Public/lab-signal-bot
5d2d4ff560
Otherwise, this doesn't seem to build on arm64
23 lines
459 B
Docker
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"]
|