Make SharedCode available inside Docker builds
Docker / Docker Build & Push (push) Failing after 1m14s

This commit is contained in:
Gabriel20xx committed 2026-08-06 00:14:11 +02:00
1 parent bb6a7d0fed
commit d9d31bc921
2 files changed
+9 -1

No files matched your search

+3 -1
View File
@@ -2,7 +2,9 @@ FROM node:22-alpine AS frontend-builder
RUN apk add --no-cache git
WORKDIR /frontend
COPY frontend/package*.json ./
RUN for attempt in 1 2 3 4 5; do \
RUN --mount=type=bind,source=SharedCode.git,target=/tmp/SharedCode.git,readonly \
git config --global url."file:///tmp/SharedCode.git".insteadOf "https://repos.gfranz.ch/Gabriel20xx/SharedCode.git" && \
for attempt in 1 2 3 4 5; do \
npm ci && break; \
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
delay=$((attempt * 5)); \