This commit is contained in:
qiaofeng1227 2023-09-15 10:10:50 +08:00
parent e1db432235
commit ba7651420e
4 changed files with 11 additions and 2 deletions

View File

@ -11,6 +11,6 @@ RUN git clone --depth=1 https://github.com/Websoft9/docker-library.git \
&& cp -r library / \
&& rm -rf library
COPY --from=build-hook /hook /usr/local/bin/hook
COPY /init.sh /usr/local/bin/init.sh
COPY hook /etc/s6
RUN chmod -R 755 /etc/s6/hook
RUN chmod -R 755 /etc/s6/hook /usr/local/bin/init.sh

View File

@ -1,5 +1,7 @@
#!/bin/bash
s6-svwait -u /etc/s6/gitea
pushd /root >/dev/null
exec su-exec $USER /usr/local/bin/hook
popd

0
docker/w9gitea/init.sh Normal file
View File

7
docker/w9gitea/init/run Normal file
View File

@ -0,0 +1,7 @@
#!/bin/bash
s6-svwait -u /etc/s6/gitea
pushd /root >/dev/null
exec /usr/local/bin/init.sh
popd