RUN apt-get update && apt-get install -y docker.io

This commit is contained in:
2026-05-06 13:06:24 +03:00
parent 13e5949445
commit 462a0ab423
+4 -2
View File
@@ -29,8 +29,10 @@ RUN ./gradlew bootJar -x test --no-daemon
# 2. Финальный образ (Runtime stage)
FROM eclipse-temurin:21-jdk-jammy
# КРИТИЧЕСКОЕ ОБНОВЛЕНИЕ: Устанавливаем Docker CLI здесь!
RUN apt-get update && apt-get install -y docker.io && apt-get clean
# Устанавливаем и докер, и плагин компоуза
RUN apt-get update && \
apt-get install -y docker.io docker-compose-v2 && \
apt-get clean \
WORKDIR /app
COPY --from=build /app/build/libs/*.jar app.jar