mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 05:39:32 +02:00
remove checkout from container
This commit is contained in:
2 files changed
+4
-7
No files matched your search
+2
-3
@@ -19,13 +19,12 @@ RUN apk --no-cache add \
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
COPY --exclude=.git/ . .
|
||||
|
||||
# Checkout version if set
|
||||
# Build gitea, .git mount is required for version data
|
||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
--mount=type=cache,target="/root/.cache/go-build" \
|
||||
--mount=type=cache,target=/root/.local/share/pnpm/store \
|
||||
--mount=type=bind,source=".git/",target=".git/" \
|
||||
if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make
|
||||
make
|
||||
|
||||
FROM docker.io/library/alpine:3.22 AS gitea
|
||||
|
||||
|
||||
+2
-4
@@ -19,14 +19,12 @@ RUN apk --no-cache add \
|
||||
WORKDIR ${GOPATH}/src/code.gitea.io/gitea
|
||||
COPY --exclude=.git/ . .
|
||||
|
||||
# Checkout version if set
|
||||
# Build gitea, .git mount is required for version data
|
||||
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||
--mount=type=cache,target="/root/.cache/go-build" \
|
||||
--mount=type=cache,target=/root/.local/share/pnpm/store \
|
||||
--mount=type=bind,source=".git/",target=".git/" \
|
||||
if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
|
||||
&& make
|
||||
|
||||
make
|
||||
|
||||
FROM docker.io/library/alpine:3.22 AS gitea-rootless
|
||||
|
||||
|
||||
Reference in new issue
Block a user