From d188cd236dc58d8d69fdaf2b060efa145ae5be42 Mon Sep 17 00:00:00 2001 From: erik Date: Wed, 24 May 2023 10:44:52 +0200 Subject: [PATCH] [skip-ci] WIP docker image --- infrastructure/docker-federated/image/Dockerfile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/infrastructure/docker-federated/image/Dockerfile b/infrastructure/docker-federated/image/Dockerfile index 99ab1f9..606fa88 100644 --- a/infrastructure/docker-federated/image/Dockerfile +++ b/infrastructure/docker-federated/image/Dockerfile @@ -9,11 +9,16 @@ ARG TAGS="sqlite sqlite_unlock_notify" ENV TAGS "bindata timetzdata $TAGS" ARG CGO_EXTRA_CFLAGS +ARG FORGEJO_GIT_URL="https://codeberg.org/forgejo/forgejo.git" +ARG FORGEJO_BRANCH="forgejo-federation" +ARG FORGEJO_FOLDER="forgejo-fed" + #Build deps RUN apk --no-cache add build-base git nodejs npm #Setup repo -COPY . ${GOPATH}/src/code.gitea.io/gitea +RUN git clone --single-branch --branch FORGEJO_BRANCH FORGEJO_GIT_URL FORGEJO_FOLDER +COPY FORGEJO_FOLDER/* ${GOPATH}/src/code.gitea.io/gitea WORKDIR ${GOPATH}/src/code.gitea.io/gitea #Checkout version if set