File size: 585 Bytes
a2ed773
a5c202c
a2ed773
 
 
 
 
a5c202c
a2ed773
 
 
a5c202c
a2ed773
a5c202c
a2ed773
60c71c3
1dddc2c
a5c202c
a2ed773
a5c202c
8d7a112
 
a2ed773
17c5fb9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM python:3.10

# Install system dependencies including libGL
RUN apt-get update && apt-get install -y \
    libgl1-mesa-glx \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 user
USER user
ENV PATH="/home/user/.local/bin:$PATH"

WORKDIR /insucompass

COPY --chown=user ./requirements.txt requirements.txt
RUN pip install --no-cache-dir --upgrade pip \
 && pip install --no-cache-dir -r requirements.txt

RUN ls -R /insucompass

EXPOSE 7860

COPY --chown=user . /insucompass
CMD ["uvicorn", "insucompass.main:app", "--host", "0.0.0.0", "--port", "7860"]