CoolFace
Apppublic

Bl4ckSpaces/Flux.2-dev-API-URL

sourceHugging Faceupdated 8mo agoView on Hugging Face
0likes
Dockerfile21 linesDownload Raw Back to root
1FROM python:3.10-slim2 3WORKDIR /app4 5# Install dependencies6COPY requirements.txt .7RUN pip install --no-cache-dir -r requirements.txt8 9# Copy app code10COPY . .11 12# Buat folder cache gradio biar gak error permission13RUN mkdir -p /.gradio && chmod 777 /.gradio14ENV GRADIO_TEMP_DIR="/.gradio"15 16# Port HF Spaces17EXPOSE 786018 19# Jalankan Gunicorn: 4 Workers untuk handle request paralel20CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app", "--workers", "4", "--timeout", "120"]21