File size: 330 Bytes
668af3c
 
e2f4d59
 
 
4ffd28e
7757f44
4ffd28e
668af3c
a0e0e5b
668af3c
f148679
668af3c
4fe91a9
2ad55a2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
FROM python:3.9

RUN useradd -m -u 1000 user
USER user

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt


RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN pip install fastapi uvicorn
COPY . .
COPY --chown=user:user . /code
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]