summaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-10-25 19:32:03 +0100
committerGitHub <noreply@github.com>2021-10-25 20:32:03 +0200
commit0277603878a04ca66ca525bf0e53afb0c16ee116 (patch)
treef935755487f907350b6d3655e77fea0c821ffec0 /Dockerfile
parent649e1d0dc27bd51b08aa17a12de48a58684c247a (diff)
downloadgitea-0277603878a04ca66ca525bf0e53afb0c16ee116.tar.gz
gitea-0277603878a04ca66ca525bf0e53afb0c16ee116.zip
chmod executables when copying to the docker (#17423)
Run chmod on the executables and the entrypoint when copying them to the docker in dockerfile. Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Norwin <noerw@users.noreply.github.com> Co-authored-by: delvh <dev.lh@web.de>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
index 382f6f330a..69a8cdbec1 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -66,4 +66,6 @@ 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 chmod 755 /usr/bin/entrypoint /app/gitea/gitea /usr/local/bin/environment-to-ini
+RUN chmod 755 /etc/s6/gitea/* /etc/s6/openssh/* /etc/s6/.s6-svscan/*
RUN ln -s /app/gitea/gitea /usr/local/bin/gitea