Signed-off-by: Gato <cedric@goutailler-olivier.fr>
This commit is contained in:
2026-06-15 06:47:56 +02:00
parent cdefbe3a81
commit e19aeadc63
5 changed files with 31 additions and 22 deletions
+5 -3
View File
@@ -2,10 +2,12 @@
FROM eclipse-temurin:25-jdk AS builder
RUN apt-get update && apt-get install -y git openssh-client && rm -rf /var/lib/apt/lists/*
RUN mkdir -p /root/.ssh && \
ssh-keyscan -p 2222 git.goutailler-olivier.com >> /root/.ssh/known_hosts
RUN --mount=type=ssh \
RUN --mount=type=secret,id=ssh_key \
--mount=type=cache,target=/root/.gradle \
mkdir -p /root/.ssh && \
cp /run/secrets/ssh_key /root/.ssh/id_ed25519 && \
chmod 600 /root/.ssh/id_ed25519 && \
ssh-keyscan -p 2222 git.goutailler-olivier.com >> /root/.ssh/known_hosts && \
git clone --depth 1 --branch main \
ssh://git@git.goutailler-olivier.com:2222/Gato/Bonsai-api.git /src && \
cd /src && ./gradlew bootJar --no-daemon -q