Files
tidal-dl-ng-webui/Dockerfile
2025-12-02 14:07:35 +01:00

28 lines
658 B
Docker

FROM python:3.11-slim
# Install system dependencies
# ffmpeg is required for media processing
RUN apt-get update && apt-get install -y \
ffmpeg \
git \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
# Copy requirements first to leverage cache
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application code
COPY . .
# Create directory for downloads and config
RUN mkdir -p /app/downloads /app/config
# Expose port
EXPOSE 8000
# Run the application
# We use uvicorn directly here instead of run.py to allow better control over host/port
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]