@@ -2,10 +2,12 @@
|
||||
|
||||
FROM node:22-alpine AS builder
|
||||
RUN apk add --no-cache git openssh
|
||||
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/.npm \
|
||||
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-webapp.git /src && \
|
||||
cd /src && npm ci --cache /root/.npm && npm run build
|
||||
|
||||
Reference in New Issue
Block a user