- Updated docker-compose.yml to include new media-api and mediamtx services for improved video handling. - Modified package.json and package-lock.json to add TypeScript types for React and React DOM. - Refactored video-related components (VideoCard, VideoList, VideoModal) for better user experience and responsiveness. - Improved FiltersBar and Pagination components with enhanced styling and functionality. - Added loading and error states in VideoList for better user feedback during data fetching. - Enhanced CSS styles for a more polished look across the application.
26 lines
428 B
Docker
26 lines
428 B
Docker
FROM python:3.11-slim
|
|
|
|
WORKDIR /app
|
|
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
ffmpeg \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
COPY requirements.txt ./
|
|
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
COPY . .
|
|
|
|
ENV MEDIA_VIDEOS_DIR=/mnt/videos \
|
|
MEDIA_THUMBS_DIR=/mnt/videos/.thumbnails \
|
|
MEDIA_PORT=8090
|
|
|
|
EXPOSE 8090
|
|
|
|
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8090"]
|
|
|
|
|
|
|
|
|
|
|