Nandan007's picture
Update Dockerfile
ebd83f3 verified
Raw History Blame Contribute Delete
271 Bytes
FROM python:3.9
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN useradd -m -u 1000 user
USER user
COPY . /code/
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]