File size: 338 Bytes
11c6d53
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.12.5

WORKDIR /app

COPY . /app

RUN pip install -r requirements.txt

RUN useradd -m -u 1000 user

USER user

# Copy the rest of the application code into the container at /app
COPY --chown=user . /app/


# Command to run your application
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860" , "--workers" , "5"]