Skip to content

Commit 31eb845

Browse files
committed
try a workaround
1 parent 73d2614 commit 31eb845

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
2+
FROM docker.io/node:22-alpine3.22 AS node
3+
14
# Build stage
25
FROM docker.io/library/golang:1.25-alpine3.22 AS build-env
36

@@ -18,6 +21,9 @@ RUN apk --no-cache add \
1821
&& npm install -g pnpm@10 \
1922
&& rm -rf /var/cache/apk/*
2023

24+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
25+
COPY --from=node /usr/local/bin/node /usr/local/bin/node
26+
2127
# Setup repo
2228
COPY . ${GOPATH}/src/code.gitea.io/gitea
2329
WORKDIR ${GOPATH}/src/code.gitea.io/gitea

Dockerfile.rootless

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
2+
FROM docker.io/node:22-alpine3.22 AS node
3+
14
# Build stage
25
FROM docker.io/library/golang:1.25-alpine3.22 AS build-env
36

@@ -18,6 +21,9 @@ RUN apk --no-cache add \
1821
&& npm install -g pnpm@10 \
1922
&& rm -rf /var/cache/apk/*
2023

24+
# workaround for node >= 22.18.0 on alpine 3.22. Remove when upgrading to alpine 3.23
25+
COPY --from=node /usr/local/bin/node /usr/local/bin/node
26+
2127
# Setup repo
2228
COPY . ${GOPATH}/src/code.gitea.io/gitea
2329
WORKDIR ${GOPATH}/src/code.gitea.io/gitea

0 commit comments

Comments
 (0)