From 7c1b8b90ba3340c9064b1cf0b28270db95fd7735 Mon Sep 17 00:00:00 2001 From: "Ehsan.Asadi" Date: Tue, 30 Dec 2025 22:16:31 +0330 Subject: [PATCH] feat: move tini to base image MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit All dependencies now in base image: ✅ Python 3.11 ✅ Node.js 20 ✅ bun, npm ✅ Build tools (gcc, g++, make) ✅ Runtime essentials (curl, ca-certificates) ✅ tini (init system) Result: • Runtime stage needs ZERO installations • Just copy files from builder • Pure base image usage 🚀 --- docker/Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 978b5c2..786e04a 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -84,15 +84,12 @@ RUN groupadd -r peikarband && \ WORKDIR /app -# Base image already has: +# Base image already has everything we need: # - Python 3.11 # - Node.js 20 # - curl, ca-certificates -# Just need to add tini for proper init -RUN apt-get update && apt-get install -y --no-install-recommends \ - tini \ - && rm -rf /var/lib/apt/lists/* \ - && apt-get clean +# - tini (for proper init) +# No additional packages needed! # Copy Python dependencies from builder COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages