aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.rootless
diff options
context:
space:
mode:
authorKyle D2021-02-23 14:21:44 -0500
committerGitHub2021-02-23 20:21:44 +0100
commit61f347e3499ef55c57b87e09e92fa44ec127b451 (patch)
treea8e0e1b374a48fb873c63f2a71495a7945b38a98 /Dockerfile.rootless
parent428d0edcb08bfb8824780ff91abf93d5932cf9d9 (diff)
Add environment-to-ini to docker image (#14762)
* Add environment-to-app.ini routine * Call environment-to-ini in docker setup scripts * Automatically convert section vars to lower case to match documentation * Remove git patch instructions * Add env variable documentation to Install Docker
Diffstat (limited to 'Dockerfile.rootless')
-rw-r--r--Dockerfile.rootless4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index d20d4d8b8..b1518af31 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -22,6 +22,9 @@ WORKDIR ${GOPATH}/src/code.gitea.io/gitea
RUN if [ -n "${GITEA_VERSION}" ]; then git checkout "${GITEA_VERSION}"; fi \
&& make clean-all build
+# Begin env-to-ini build
+RUN go build contrib/environment-to-ini/environment-to-ini.go
+
FROM alpine:3.13
LABEL maintainer="maintainers@gitea.io"
@@ -51,6 +54,7 @@ RUN chown git:git /var/lib/gitea /etc/gitea
COPY docker/rootless /
COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea
+COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
USER git:git
ENV GITEA_WORK_DIR /var/lib/gitea