dockerfile

This commit is contained in:
qiaofeng1227 2023-09-15 10:15:09 +08:00
parent ba7651420e
commit eabd3f8710

View File

@ -6,10 +6,8 @@ RUN go build -o hook /hook.go
# step2: from gitea image clone library, copy hook, s6 run script ... # step2: from gitea image clone library, copy hook, s6 run script ...
FROM gitea/gitea:1.20.4 FROM gitea/gitea:1.20.4
RUN git clone --depth=1 https://github.com/Websoft9/docker-library.git \ RUN cd / && git clone --depth=1 https://github.com/Websoft9/docker-library.git \
&& mv docker-library library \ && mv docker-library library
&& cp -r library / \
&& rm -rf library
COPY --from=build-hook /hook /usr/local/bin/hook COPY --from=build-hook /hook /usr/local/bin/hook
COPY /init.sh /usr/local/bin/init.sh COPY /init.sh /usr/local/bin/init.sh
COPY hook /etc/s6 COPY hook /etc/s6