Vendor SharedCode locally
Docker / Docker Build & Push (push) Failing after 1m19s
Lint / Lint (push) Successful in 15s
Tests / Go backend (push) Successful in 19s
Tests / Dashboard checks (push) Successful in 18s

This commit is contained in:
Gabriel20xx committed 2026-08-06 15:52:56 +02:00
1 parent a8c51b8484
commit 6eb8f4ad60
88 files changed
+9708 -275

No files matched your search

+3 -6
View File
@@ -1,8 +1,8 @@
FROM node:22-alpine AS frontend-builder
WORKDIR /frontend
COPY frontend/package*.json ./
COPY SharedCode/packages/web-ui /SharedCode/packages/web-ui
RUN --mount=type=cache,target=/root/.npm \
--mount=type=secret,id=gitea_npmrc,target=/root/.npmrc,required \
for attempt in 1 2 3 4 5; do \
npm ci && break; \
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
@@ -16,11 +16,8 @@ RUN npm run build
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY backend/go.mod backend/go.sum ./
RUN --mount=type=secret,id=gitea_go_netrc,target=/root/.netrc,required \
GOPROXY="https://repos.gfranz.ch/api/packages/Gabriel20xx/go,https://proxy.golang.org" \
GONOSUMDB="repos.gfranz.ch/Gabriel20xx/shared/*" \
GOAUTH=netrc \
go mod download
COPY SharedCode/backend/ /SharedCode/backend/
RUN go mod download
COPY backend/*.go ./
COPY --from=frontend-builder /frontend/build ./web
RUN apk add --no-cache ca-certificates && \