Slim down container images and move them to Python 3.14 and Debian Trixie

This commit is contained in:
Eduardo Silva
2026-11-17 09:49:59 -03:00
parent 61c0d59dd2
commit 894993226f
8 changed files with 12 additions and 22 deletions
@@ -1,10 +1,10 @@
# Single stage build for Cluster Node
FROM python:3.12-slim
FROM python:3.14-slim
WORKDIR /app
# Install necessary runtime packages
RUN apt-get update && apt-get install -y --no-install-recommends \
wireguard \
wireguard-tools \
iptables \
iproute2 \
net-tools \
@@ -21,13 +21,11 @@ COPY requirements.txt /app/requirements.txt
RUN pip install --no-cache-dir -r requirements.txt
# Copy the application code
COPY . /app/
COPY cluster_worker.py entrypoint.sh /app/
# Set execution permissions on scripts
RUN chmod +x /app/entrypoint.sh
ARG SERVER_ADDRESS
ARG DEBUG_MODE
ENTRYPOINT ["/app/entrypoint.sh"]
CMD ["python", "-u", "/app/cluster_worker.py"]