- Archive player: loading spinner on stream start/seek/timeline click - Archive player: live clock updates every second during playback - Timeline: removed segment overlays, hourly labels (0–24) - Clip download: split time inputs into separate HH/MM/SS fields - Clip download: cancel button aborts fetch and kills ffmpeg on server - Security: CSRF protection, HttpOnly/SameSite cookies, XSS escaping, parameter validation, access control on ping endpoint - Dashboard: user-specific DVR cards, live clock and version widgets - Preview channels resume after closing fullscreen player - Docker: moved SDK libs into dvr_admin/, cleaned up dvr_admin_docker/
28 lines
687 B
Docker
28 lines
687 B
Docker
FROM python:3.11-slim
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
gcc \
|
|
libffi-dev \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
WORKDIR /app
|
|
|
|
COPY dvr_admin_docker/requirements.txt .
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
# Библиотеки и приложение берём из оригинальных папок
|
|
COPY dvr_admin/lib/ /app/lib/
|
|
COPY dvr_admin/app.py .
|
|
|
|
VOLUME ["/data"]
|
|
|
|
ENV DATA_DIR=/data
|
|
ENV SDK_DIR=/app/lib
|
|
ENV LD_LIBRARY_PATH=/app/lib
|
|
|
|
EXPOSE 8000
|
|
|
|
CMD ["gunicorn", "--bind", "0.0.0.0:8000", "--workers", "2", "--threads", "4", \
|
|
"--timeout", "3600", "--worker-class", "gthread", "app:app"]
|