mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
dockerfile
This commit is contained in:
parent
ba7651420e
commit
eabd3f8710
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user