Spaces:
Paused
Paused
File size: 765 Bytes
b6b2096 50f4e38 b6b2096 50f4e38 5e11854 50f4e38 b6b2096 50f4e38 b6b2096 50f4e38 b6b2096 50f4e38 b6b2096 50f4e38 | 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 28 29 30 | # syntax=docker/dockerfile:1.4
FROM python:3.11-slim
# Install git dan dependensi dasar
RUN apt-get update && apt-get install -y git && apt-get install ffmpeg -y && apt-get clean
# Set working directory ke /root
WORKDIR /app
# Clone repository
RUN git clone https://github.com/HaxWitcher/plex-yt.git
# Masuk ke direktori project
WORKDIR /app/plex-yt
# Buat folder output dengan permission penuh
RUN mkdir -p output spotify_output && chmod -R 777 output spotify_output
# Hapus dan tulis ulang file yt.txt
# Install dependencies Python
RUN pip install requests
RUN pip install -r requirements.txt
RUN chmod 777 yt.txt
# Expose port untuk FastAPI
EXPOSE 7860
# Jalankan FastAPI dengan Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] |