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