aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile.rootless
diff options
context:
space:
mode:
authorJonathan Hult2021-07-09 09:08:22 -0500
committerGitHub2021-07-09 10:08:22 -0400
commit615444dcbd0d78b89ea631a48401c486629280ea (patch)
tree75c136072e7d87c51248ec82ac15a31046cfa950 /Dockerfile.rootless
parent91162bbaea206e92cc514755a8ee288a43763803 (diff)
Fix #16387 - rootless Docker user (#16388)
Move comment to top of USER instruction
Diffstat (limited to 'Dockerfile.rootless')
-rw-r--r--Dockerfile.rootless3
1 files changed, 2 insertions, 1 deletions
diff --git a/Dockerfile.rootless b/Dockerfile.rootless
index efdb3bb72..d3ba15f10 100644
--- a/Dockerfile.rootless
+++ b/Dockerfile.rootless
@@ -56,7 +56,8 @@ 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 1000:1000 # git:git
+#git:git
+USER 1000:1000
ENV GITEA_WORK_DIR /var/lib/gitea
ENV GITEA_CUSTOM /var/lib/gitea/custom
ENV GITEA_TEMP /tmp/gitea