CoolFace
Apppublic

gopalasu/nevercry

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile25 linesDownload Raw Back to root
1FROM python:3.92 3# Install ffmpeg4USER root5RUN apt-get update && apt-get install -y ffmpeg6 7# Buat user non-root8RUN useradd -m -u 1000 user9USER user10 11# Tambahkan path pip user-level12ENV PATH="/home/user/.local/bin:$PATH"13 14# Set direktori kerja15WORKDIR /app16 17# Salin dan install dependensi18COPY --chown=user requirements.txt requirements.txt19RUN pip install --no-cache-dir --upgrade -r requirements.txt20 21# Salin seluruh isi proyek22COPY --chown=user . /app23 24# Jalankan FastAPI app25CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]