-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (19 loc) · 727 Bytes
/
Dockerfile
File metadata and controls
27 lines (19 loc) · 727 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM python:3.12-slim
WORKDIR /app
# System-Abhängigkeiten (für Playwright, Audio-Pipeline, etc.)
RUN apt-get update && apt-get install -y --no-install-recommends \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# Python-Abhängigkeiten
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Playwright Chromium installieren
RUN pip install --no-cache-dir playwright && playwright install chromium --with-deps
# AION-Code kopieren
COPY . .
# Port freigeben
EXPOSE 7000
# Gesundheitscheck
HEALTHCHECK --interval=30s --timeout=10s --start-period=10s --retries=3 \
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:7000/api/status')"
CMD ["python", "aion_web.py"]