File size: 368 Bytes
6b5aade
 
 
 
a79bc89
edb5391
6b5aade
 
da5ad0d
 
 
 
edb5391
6b5aade
 
 
a79bc89
 
6b5aade
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.11

WORKDIR /code

USER root

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

ADD --chmod=755 https://astral.sh/uv/install.sh /install.sh

RUN /install.sh && rm /install.sh

RUN /root/.cargo/bin/uv pip install --system --no-cache -r requirements.txt

COPY ./app /code/app

USER user

CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]