feat: move tini to base image
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

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 🚀
This commit is contained in:
Ehsan.Asadi
2025-12-30 22:16:31 +03:30
parent 82af967dfc
commit 7c1b8b90ba

View File

@@ -84,15 +84,12 @@ RUN groupadd -r peikarband && \
WORKDIR /app WORKDIR /app
# Base image already has: # Base image already has everything we need:
# - Python 3.11 # - Python 3.11
# - Node.js 20 # - Node.js 20
# - curl, ca-certificates # - curl, ca-certificates
# Just need to add tini for proper init # - tini (for proper init)
RUN apt-get update && apt-get install -y --no-install-recommends \ # No additional packages needed!
tini \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get clean
# Copy Python dependencies from builder # Copy Python dependencies from builder
COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages COPY --from=builder /usr/local/lib/python3.11/site-packages /usr/local/lib/python3.11/site-packages