sdxl / Dockerfile
dragonxd1's picture
Create Dockerfile
6cc39ea verified
raw
history blame contribute delete
429 Bytes
FROM python:3.10-slim
WORKDIR /app
# Install system deps
RUN apt-get update && apt-get install -y \
git \
libgl1 \
&& rm -rf /var/lib/apt/lists/*
# Copy files
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY app.py .
# HF cache directory
ENV HF_HOME=/data/.huggingface
ENV TRANSFORMERS_CACHE=/data/.huggingface
ENV HF_HUB_ENABLE_HF_TRANSFER=1
EXPOSE 7860
CMD ["python", "app.py"]