zamdal / Dockerfile
tecuts's picture
Upload 3 files
0bc8cfa verified
raw
history blame contribute delete
537 Bytes
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"]