File size: 537 Bytes
0bc8cfa | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | FROM python:3.11-slim
# Install FFmpeg for FLAC conversion
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
# Create app directories
RUN mkdir -p /app/downloads /app/OrpheusDL/config
# Set working directory
WORKDIR /app
# Copy application files
COPY app.py /app/
COPY requirements.txt /app/
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Set environment variables
ENV PORT=7860
ENV PYTHONUNBUFFERED=1
# Expose port
EXPOSE 7860
# Command to run the application
CMD ["python", "app.py"] |