Spaces:
Sleeping
Sleeping
File size: 504 Bytes
89cf6e8 9e35b9e 89cf6e8 9e35b9e e0ae9ad 9e35b9e cc644a4 984f501 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
FROM python:3.10.12-slim
# The two following lines are requirements for the Dev Mode to be functional
# Learn more about the Dev Mode at https://huggingface.co/dev-mode-explorers
RUN useradd -m -u 1000 user
WORKDIR /app
COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=user ./src /app/src
CMD ["python3", "-m", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "7860"]
|