-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 785 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 785 Bytes
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
FROM debian:bookworm-slim
# Gerekli sistem araçlarını kur
# python3-full: Python ve venv/pip
# python3-tk: Arayüz kütüphanesi
RUN apt-get update && apt-get install -y \
python3-full python3-pip python3-tk tk-dev libx11-6 binutils zlib1g-dev \
libjpeg-dev patchelf gcc g++ make \
pciutils dmidecode util-linux network-manager iproute2 procps kmod sudo x11-apps \
&& rm -rf /var/lib/apt/lists/*
# Root şifresi (sudo işlemleri için)
RUN echo "root:root" | chpasswd
WORKDIR /app
# Bağımlılıkları kur
COPY requirements.txt .
RUN pip3 install --no-cache-dir --break-system-packages -r requirements.txt
RUN pip3 install --no-cache-dir --break-system-packages nuitka ordered-set zstandard
COPY . .
# Uygulamayı doğrudan başlat
CMD ["python3", "main.py"]