FROM python:3.11-slim WORKDIR /app # Kopieer requirements eerst voor betere caching COPY requirements.txt . # Installeer dependencies RUN pip install --no-cache-dir -r requirements.txt # Kopieer de applicatie bestanden COPY . . # Maak de benodigde directories aan RUN mkdir -p /app/static/clips # Stel de juiste permissies in RUN chmod -R 755 /app EXPOSE 80 # Start de applicatie CMD ["python", "start_all.py"]