youtube-downloader / Dockerfile
jasonanugrah's picture
Update Dockerfile
e44430c verified
raw
history blame
477 Bytes
FROM python:3.9-slim
# UPDATE SISTEM & INSTAL SERTIFIKAT (Solusi Error DNS/Hostname)
RUN apt-get update && \
apt-get install -y ffmpeg ca-certificates dnsutils && \
update-ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Setup folder kerja
WORKDIR /app
# Copy file
COPY . .
# Buat folder downloads
RUN mkdir -p downloads && chmod 777 downloads
# Install library
RUN pip install --no-cache-dir -r requirements.txt
# Jalankan aplikasi
CMD ["python", "app.py"]