Arpit-Bansal's picture
changes in dockerfile
6f09355
raw
history blame
286 Bytes
FROM python:3.10
RUN useradd -m -u 1000 user
USER user
WORKDIR /code
COPY ./requirements.txt ./
RUN chown -R user:user /code
RUN pip install --no-cache-dir -r ./requirements.txt
COPY --chown=user:user . /code
# COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]