fastapi-rc / Dockerfile
ozipoetra
main
4fe91d9
raw
history blame contribute delete
584 Bytes
FROM python:3.13-slim
# Install FFmpeg, curl (to download 7zz), and procps
RUN apt-get update && apt-get install -y \
ffmpeg \
procps \
curl \
aria2 \
xz-utils \
&& rm -rf /var/lib/apt/lists/*
# Download and install the OFFICIAL 7-Zip standalone binary (64-bit Linux)
RUN curl -L https://www.7-zip.org/a/7z2501-linux-x64.tar.xz | tar -xJ -C /usr/local/bin 7zz
WORKDIR /app
RUN pip install --no-cache-dir fastapi uvicorn httpx psutil python-multipart aiofiles yt-dlp
COPY main.py .
COPY start.sh .
RUN chmod +x start.sh
EXPOSE 7860
CMD ["/app/start.sh"]