feat: use internal postdeploy hook instead of dokku's
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
e509d0eb28
commit
b17f8bd032
3 changed files with 6 additions and 9 deletions
|
@ -100,8 +100,8 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|||
&& mkdir /var/log/supervisord /var/run/supervisord
|
||||
COPY supervisord.conf /etc/supervisord.conf
|
||||
|
||||
COPY ./app.json /app/app.json
|
||||
COPY ./postdeploy.sh /app/postdeploy.sh
|
||||
COPY --chmod=755 ./postdeploy.sh /app/postdeploy.sh
|
||||
COPY --chmod=755 ./postdeploy_hook.sh /docker-entrypoint-hooks.d/post-installation/postdeploy_hook.sh
|
||||
|
||||
ENV NEXTCLOUD_UPDATE=1
|
||||
|
||||
|
|
7
app.json
7
app.json
|
@ -1,7 +0,0 @@
|
|||
{
|
||||
"scripts": {
|
||||
"dokku": {
|
||||
"postdeploy": "su -l -s /bin/sh www-data -c /app/postdeploy.sh"
|
||||
}
|
||||
}
|
||||
}
|
4
postdeploy_hook.sh
Executable file
4
postdeploy_hook.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/sh
|
||||
|
||||
su -l -s /bin/sh www-data -c /app/postdeploy.sh
|
||||
|
Loading…
Reference in a new issue