aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorKyle D2021-02-23 14:21:44 -0500
committerGitHub2021-02-23 20:21:44 +0100
commit61f347e3499ef55c57b87e09e92fa44ec127b451 (patch)
treea8e0e1b374a48fb873c63f2a71495a7945b38a98 /Dockerfile
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')
-rw-r--r--Dockerfile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 1376dbdda..158ec561a 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"
@@ -62,4 +65,5 @@ CMD ["/bin/s6-svscan", "/etc/s6"]
COPY docker/root /
COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /app/gitea/gitea
+COPY --from=build-env /go/src/code.gitea.io/gitea/environment-to-ini /usr/local/bin/environment-to-ini
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea