From eabd3f8710c8fd187efa579e367ed3281937d7e8 Mon Sep 17 00:00:00 2001 From: qiaofeng1227 <76487013@qq.com> Date: Fri, 15 Sep 2023 10:15:09 +0800 Subject: [PATCH] dockerfile --- docker/w9gitea/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/docker/w9gitea/Dockerfile b/docker/w9gitea/Dockerfile index 625856c8..78a7d6eb 100644 --- a/docker/w9gitea/Dockerfile +++ b/docker/w9gitea/Dockerfile @@ -6,10 +6,8 @@ RUN go build -o hook /hook.go # step2: from gitea image clone library, copy hook, s6 run script ... FROM gitea/gitea:1.20.4 -RUN git clone --depth=1 https://github.com/Websoft9/docker-library.git \ - && mv docker-library library \ - && cp -r library / \ - && rm -rf library +RUN cd / && git clone --depth=1 https://github.com/Websoft9/docker-library.git \ + && mv docker-library library COPY --from=build-hook /hook /usr/local/bin/hook COPY /init.sh /usr/local/bin/init.sh COPY hook /etc/s6