websoft9/docker/w9gitea/Dockerfile

13 lines
364 B
Docker
Raw Normal View History

2023-09-15 09:16:20 +08:00
# step1: build hook-api exe
FROM docker.io/library/golang:1.21-alpine3.18 as build-hook
WORKDIR /
2023-09-15 17:07:18 +08:00
# 定义构建参数
ARG GITEA_VERSION=1.20.4
2023-09-15 09:16:20 +08:00
# step2: from gitea image clone library, copy hook, s6 run script ...
2023-09-15 17:07:18 +08:00
FROM gitea/gitea:${GITEA_VERSION}
2023-09-15 10:16:39 +08:00
COPY init.sh /usr/local/bin/init.sh
2023-09-15 10:21:25 +08:00
COPY ./init /etc/s6/init
2023-09-15 17:07:18 +08:00
RUN chmod -R 755 /etc/s6/init /usr/local/bin/init.sh