File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -19,13 +19,12 @@ RUN apk --no-cache add \
1919WORKDIR ${GOPATH}/src/code.gitea.io/gitea
2020COPY --exclude=.git/ . .
2121
22- # Checkout version if set
22+ # Build gitea, .git mount is required for version data
2323RUN --mount=type=cache,target=/go/pkg/mod \
2424 --mount=type=cache,target="/root/.cache/go-build" \
2525 --mount=type=cache,target=/root/.local/share/pnpm/store \
2626 --mount=type=bind,source=".git/" ,target=".git/" \
27- if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}" ; fi \
28- && make
27+ make
2928
3029FROM docker.io/library/alpine:3.22 AS gitea
3130
Original file line number Diff line number Diff line change @@ -19,14 +19,12 @@ RUN apk --no-cache add \
1919WORKDIR ${GOPATH}/src/code.gitea.io/gitea
2020COPY --exclude=.git/ . .
2121
22- # Checkout version if set
22+ # Build gitea, .git mount is required for version data
2323RUN --mount=type=cache,target=/go/pkg/mod \
2424 --mount=type=cache,target="/root/.cache/go-build" \
2525 --mount=type=cache,target=/root/.local/share/pnpm/store \
2626 --mount=type=bind,source=".git/",target=".git/" \
27- if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
28- && make
29-
27+ make
3028
3129FROM docker.io/library/alpine:3.22 AS gitea-rootless
3230
You can’t perform that action at this time.
0 commit comments