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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user