musheff-api / Dockerfile
blasisd's picture
Changed port for Docker in README.md and Dockerfile
984f501
raw
history blame contribute delete
504 Bytes
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"]