File size: 630 Bytes
2613c81
 
 
 
 
 
 
7907578
 
6fa47cc
2613c81
 
6fa47cc
 
7907578
 
2613c81
 
cbedf8b
 
2613c81
 
 
 
f530152
cbedf8b
f530152
2613c81
7907578
 
2613c81
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
FROM python:3.10-slim

ENV PYTHONUNBUFFERED=1 \
    PYTHONDONTWRITEBYTECODE=1 \
    PIP_NO_CACHE_DIR=1 \
    HOME=/home/appuser \
    PATH=/home/appuser/.local/bin:$PATH

RUN apt-get update && apt-get install -y \
    build-essential \
    curl \
    git \
    libgl1 \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*

RUN useradd -m -u 1000 appuser
USER appuser
WORKDIR $HOME/app

RUN python -m pip install --upgrade pip setuptools wheel

COPY --chown=appuser requirements.txt .
RUN pip install -r requirements.txt

RUN mkdir -p artifacts/runs artifacts/logs

COPY --chown=appuser . .

EXPOSE 7860
CMD ["python", "app.py"]