SPARE1 / Dockerfile
ihhereanth's picture
Update Dockerfile
0e03e96 verified
Raw History Blame Contribute Delete
333 Bytes
FROM python:3.11-slim
WORKDIR /app
RUN useradd -m -u 1000 user
ENV PATH="/home/user/.local/bin:$PATH"
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user . .
USER user
EXPOSE 7860
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "2"]