ZillionParts-PDF2Doc / Dockerfile
E-slam's picture
Update Dockerfile
0d6dde3 verified
raw
history blame
319 Bytes
FROM python:3.9
RUN useradd -m -u 1000 user
USER user
WORKDIR /code
COPY ./requirements.txt /code/requirements.txt
RUN chown -R user:user /code
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
COPY --chown=user:user . /code
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]