From 2c67d0c6f1cae660269e03f35fda0a286f87c1c0 Mon Sep 17 00:00:00 2001 From: Dorian Date: Mon, 16 Mar 2026 22:37:32 +0000 Subject: [PATCH] fix: IndeedHub demo clone uses GITEA_TOKEN build arg MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Private repo needs auth — pass GITEA_TOKEN as env var in Portainer, never hardcoded. Or make the repo public to skip auth entirely. Co-Authored-By: Claude Opus 4.6 (1M context) --- docker-compose.demo.yml | 2 ++ indeedhub-demo/Dockerfile | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/docker-compose.demo.yml b/docker-compose.demo.yml index ce131e4d..2f1ca3e5 100644 --- a/docker-compose.demo.yml +++ b/docker-compose.demo.yml @@ -45,6 +45,8 @@ services: build: context: ./indeedhub-demo dockerfile: Dockerfile + args: + GITEA_TOKEN: ${GITEA_TOKEN:-} container_name: indeedhub ports: - "7777:7777" diff --git a/indeedhub-demo/Dockerfile b/indeedhub-demo/Dockerfile index 5bb0ebb8..f1df828c 100644 --- a/indeedhub-demo/Dockerfile +++ b/indeedhub-demo/Dockerfile @@ -3,7 +3,8 @@ FROM node:20-alpine AS builder RUN apk add --no-cache git WORKDIR /app -RUN git clone --depth 1 https://git.tx1138.com/lfg2025/indeehub.git . +ARG GITEA_TOKEN="" +RUN git clone --depth 1 https://testaccount:${GITEA_TOKEN}@git.tx1138.com/lfg2025/indeehub.git . RUN npm ci ENV VITE_USE_MOCK_DATA=false ENV VITE_INDEEHUB_API_URL=/api