stablediffusionapi / Dockerfile
yusufgundogdu's picture
Update Dockerfile
4a8d83f verified
raw
history blame
489 Bytes
FROM python:3.9-slim
WORKDIR /app
# Gerekli sistem kütüphaneleri (minimum)
RUN apt-get update && apt-get install -y --no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Hugging Face'in beklediği port yapılandırması
ENV PORT=8080
EXPOSE 8080
# Production-ready WSGI sunucusu
CMD ["gunicorn", "--bind", "0.0.0.0:8080", "--workers", "1", "--threads", "1", "--timeout", "120", "app:app"]