File size: 294 Bytes
02a4418
 
4f87808
02a4418
 
 
 
 
 
 
 
e5d9d12
02a4418
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM python:3.10.4

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 --chown=user . /code

CMD ["fastapi", "run", "app/main.py", "--host", "0.0.0.0", "--port", "7860"]