File size: 434 Bytes
1890ae9
 
5e2b30a
 
7e1cdd6
1890ae9
7e1cdd6
1890ae9
 
7e1cdd6
1890ae9
7e1cdd6
1890ae9
 
 
2f37dc9
7e1cdd6
e09c7c9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.11-slim

RUN apt-get update && apt-get install -y --no-install-recommends libgomp1 && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 user

WORKDIR /app

COPY requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade -r requirements.txt

COPY --chown=user . /app

USER user


EXPOSE 7860
CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:7860", "--workers", "2", "--timeout", "120", "app3:app"]