SunilKrishna/image-generative-ai
0
1# FROM python:3.102 3# RUN useradd -m -u 1000 user4# USER user5# ENV PATH="/home/user/.local/bin:$PATH"6 7# WORKDIR /app8 9# COPY --chown=user requirements.txt .10# RUN pip install --no-cache-dir -r requirements.txt11 12# COPY --chown=user . .13 14# CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]15 16 17FROM python:3.1018 19# Create a user to avoid permission issues20RUN useradd -m -u 1000 user21USER user22ENV PATH="/home/user/.local/bin:$PATH"23 24WORKDIR /app25 26COPY requirements.txt requirements.txt27RUN pip install --no-cache-dir --upgrade -r requirements.txt28 29COPY . /app30 31# Hugging Face Space default port32CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]33 