-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (24 loc) · 743 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (24 loc) · 743 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
26
27
28
29
# Dockerfile
FROM python:3.12-slim
ENV LANG=C.UTF-8
ENV LC_ALL=C.UTF-8
# System packages for Tkinter + GUI support
RUN apt update && apt install -y \
python3-tk \
fonts-dejavu \
fonts-noto-color-emoji \
libx11-6 libx11-xcb1 libxcb1 libxcomposite1 \
libxcursor1 libxdamage1 libxext6 libxfixes3 \
libxrandr2 libxtst6 libnss3 libatk1.0-0 \
libatk-bridge2.0-0 libgtk-3-0 libasound2 \
libpulse0 curl git \
&& rm -rf /var/lib/apt/lists/*
# Set working directory and copy files
WORKDIR /app
COPY . .
COPY entrypoint.sh /app/entrypoint.sh
RUN chmod +x /app/entrypoint.sh
# Install Python dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Use custom entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]