mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-01-24 10:17:15 +08:00
gitea
This commit is contained in:
parent
e1db432235
commit
ba7651420e
@ -11,6 +11,6 @@ RUN git clone --depth=1 https://github.com/Websoft9/docker-library.git \
|
|||||||
&& cp -r library / \
|
&& cp -r library / \
|
||||||
&& rm -rf 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 hook /etc/s6
|
COPY hook /etc/s6
|
||||||
RUN chmod -R 755 /etc/s6/hook
|
RUN chmod -R 755 /etc/s6/hook /usr/local/bin/init.sh
|
||||||
|
@ -1,5 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
s6-svwait -u /etc/s6/gitea
|
||||||
|
|
||||||
pushd /root >/dev/null
|
pushd /root >/dev/null
|
||||||
exec su-exec $USER /usr/local/bin/hook
|
exec su-exec $USER /usr/local/bin/hook
|
||||||
popd
|
popd
|
||||||
|
0
docker/w9gitea/init.sh
Normal file
0
docker/w9gitea/init.sh
Normal file
7
docker/w9gitea/init/run
Normal file
7
docker/w9gitea/init/run
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
s6-svwait -u /etc/s6/gitea
|
||||||
|
|
||||||
|
pushd /root >/dev/null
|
||||||
|
exec /usr/local/bin/init.sh
|
||||||
|
popd
|
Loading…
Reference in New Issue
Block a user