new gitea

This commit is contained in:
qiaofeng1227 2023-09-15 17:12:06 +08:00
parent 8d16ebb9db
commit 2b378edcfb

View File

@ -1,12 +1,4 @@
# step1: build hook-api exe
FROM docker.io/library/golang:1.21-alpine3.18 as build-hook
WORKDIR /
# 定义构建参数
ARG GITEA_VERSION=1.20.4
# step2: from gitea image clone library, copy hook, s6 run script ...
FROM gitea/gitea:${GITEA_VERSION}
FROM gitea/gitea:1.20.4
COPY init.sh /usr/local/bin/init.sh
COPY ./init /etc/s6/init
RUN chmod -R 755 /etc/s6/init /usr/local/bin/init.sh