From 4eb972c7031f1b62fc7a79e8a67fb8f415b2107c Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Thu, 12 Mar 2020 19:28:08 +0100 Subject: [PATCH] Back to postdeploy Release overrides the entrypoint. --- Dockerfile | 3 ++- Procfile | 1 - app.json | 7 ++++++- release.sh => postdeploy.sh | 0 4 files changed, 8 insertions(+), 3 deletions(-) delete mode 100644 Procfile rename release.sh => postdeploy.sh (100%) diff --git a/Dockerfile b/Dockerfile index bacf22c..7d1bd1f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,6 +3,7 @@ FROM gitea/gitea:1.11.2 COPY . ${WORKDIR} RUN mkdir -p /app/ -COPY release.sh /app/ + +COPY postdeploy.sh /app/ EXPOSE 3000 diff --git a/Procfile b/Procfile deleted file mode 100644 index 2a613ac..0000000 --- a/Procfile +++ /dev/null @@ -1 +0,0 @@ -release: bash /app/release.sh diff --git a/app.json b/app.json index d6c97eb..5cce3e8 100644 --- a/app.json +++ b/app.json @@ -1,5 +1,10 @@ { "name": "gitea", "description": "Gitea is a painless self-hosted Git service.", - "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku" + "repository": "https://gitlab.com/autonomic-cooperative/gitea-dokku", + "scripts": { + "dokku": { + "postdeploy": "bash /app/postdeploy.sh" + } + } } diff --git a/release.sh b/postdeploy.sh similarity index 100% rename from release.sh rename to postdeploy.sh