Architecture changes: - Created VM 100 "docker-services" (Debian 12 Cloud Image) - 10GB RAM, 6 Cores, 50GB system disk - Separate 100GB LVM data volume for service data - WireGuard moved from host to VM (10.0.0.2) - All containers migrated and running Updated documentation to reflect new architecture 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
28 lines
611 B
Docker
28 lines
611 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
# System-Dependencies für Wake-on-LAN
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
curl \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Python Dependencies
|
|
COPY requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# App kopieren
|
|
COPY app.py .
|
|
|
|
# Daten-Verzeichnis für Token-Persistenz
|
|
RUN mkdir -p /data
|
|
|
|
# Non-root User
|
|
RUN useradd -m -u 1000 appuser && chown -R appuser:appuser /app /data
|
|
USER appuser
|
|
|
|
EXPOSE 5000
|
|
|
|
# Gunicorn für Production
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:5000", "--workers", "2", "--timeout", "30", "app:app"]
|