Team Ai
Apppublic

Pacicap/api_stable_diffusion

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
Dockerfile20 linesDownload Raw Back to root
1FROM python:3.102 3# Create a non-root user4RUN useradd -m -u 1000 user5USER user6ENV PATH="/home/user/.local/bin:$PATH"7 8# Set the working directory9WORKDIR /app10 11# Install Python dependencies12COPY --chown=user ./requirements.txt requirements.txt13RUN pip install --no-cache-dir --upgrade -r requirements.txt14 15# Copy your app code16COPY --chown=user . /app17 18# Start the FastAPI app19CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]20