File size: 515 Bytes
d8a58f5
79b1cf8
d8a58f5
79b1cf8
0240937
 
 
 
 
 
 
 
 
79b1cf8
 
 
 
d8a58f5
 
 
 
 
 
 
 
 
 
 
 
79b1cf8
d8a58f5
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
FROM python:3.9-slim

ENV PYTHONUNBUFFERED=1

# Install tkinter system libraries
RUN apt-get update && apt-get install -y \

    python3-tk \
    tk \
    tk-dev \
    libtk8.6 \
    && rm -rf /var/lib/apt/lists/*

# Create user
RUN useradd -m -u 1000 user

WORKDIR /app

COPY requirements.txt .

RUN pip install --no-cache-dir --upgrade pip && \

    pip install --no-cache-dir -r requirements.txt

COPY . .

RUN chown -R user:user /app

USER user

EXPOSE 7860

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