gitea 发布docker版本
一:下载源码
二:安装docker
docker版本太低,需要升级到最新版本
root@server:~# docker --version
Docker version 20.10.8, build 3967b7d
Removing intermediate container 59ab809554d5
---> 405d921a2f5b
Step 15/31 : RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi && make clean-all build
---> Running in f0756dc52a2a
Already on 'main'
Your branch is ahead of 'origin/main' by 1 commit.
(use "git push" to publish your local commits)
make: /bin/sh: Operation not permitted
make: /bin/sh: Operation not permitted
make: /bin/sh: Operation not permitted
make: /bin/sh: Operation not permitted
make: find: Operation not permitted
make: /bin/sh: Operation not permitted
make: /bin/sh: Operation not permitted
make: go: Operation not permitted
make: *** [Makefile:236: clean] Error 127
go clean -i ./...
需要添加DNS,默认DNS无法访问,导致下载失败
Step 9/28 : RUN apk --no-cache add build-base git nodejs npm
---> Running in 171e6e958fcd
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz
fetch https://dl-cdn.alpinelinux.org/alpine/v3.15/community/x86_64/APKINDEX.tar.gz
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/main: temporary error (try again later)
WARNING: Ignoring https://dl-cdn.alpinelinux.org/alpine/v3.15/community: temporary error (try again later)
ERROR: unable to select packages:
build-base (no such package):
required by: world[build-base]