From 76b9abd3cab04e1e8fc49c7a192e39efe4e58253 Mon Sep 17 00:00:00 2001 From: Dan Date: Tue, 28 Nov 2023 13:48:08 -0500 Subject: [PATCH] comment dockerfile --- wacs-gitea/Dockerfile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wacs-gitea/Dockerfile b/wacs-gitea/Dockerfile index dd8c79c..a0fe9fb 100644 --- a/wacs-gitea/Dockerfile +++ b/wacs-gitea/Dockerfile @@ -17,12 +17,20 @@ RUN /merge-locale/localeMerger FROM gitea/gitea:${GITEA_VERSION}-rootless ENV GITEA_CUSTOM=/custom +# This ENV is functional, but it is here as an example of what the value should be at runtime ENV READER_BASE_LINK=https://read-dev.bibleineverylanguage.org/ +# COPY's need permissions set for rootless COPY --chown=git:git --from=LOCALE_BUILDER /output-locale/*.ini /custom/options/locale/ COPY --chown=git:git ./custom/templates /custom/templates -COPY ./custom/public /custom/public +COPY --chown=git:git ./custom/public /custom/public +# dumb-init for clean startup and shutdown as per the parent image. +# Startup is done this way to still use dumb-init like the partent image; this is how dumb-init suggests to do it. ENTRYPOINT ["/usr/bin/dumb-init", "--"] +# Cat feeds the extra_tabs.tmpl file into envsubst +# envsubst replaces the env vars in the file with the values from the environment and writes out a temp file +# Temp file is then moved to the real location +# Gitea entrypoint starts gitea CMD ["sh", "-c", "cat /custom/templates/custom/extra_tabs.tmpl | envsubst > /tmp/extra_tabs.tmpl && mv /tmp/extra_tabs.tmpl /custom/templates/custom/extra_tabs.tmpl && /usr/local/bin/docker-entrypoint.sh"] \ No newline at end of file