From 0277603878a04ca66ca525bf0e53afb0c16ee116 Mon Sep 17 00:00:00 2001 From: zeripath Date: Mon, 25 Oct 2021 19:32:03 +0100 Subject: 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 Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Norwin Co-authored-by: delvh --- Dockerfile.rootless | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Dockerfile.rootless') diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 64dd12bb6b..3df6e8be66 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -9,7 +9,7 @@ ENV GOPROXY ${GOPROXY:-direct} ARG GITEA_VERSION ARG TAGS="sqlite sqlite_unlock_notify" ENV TAGS "bindata timetzdata $TAGS" -ARG CGO_EXTRA_CFLAGS +ARG CGO_EXTRA_CFLAGS #Build deps RUN apk --no-cache add build-base git nodejs npm @@ -55,6 +55,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 +RUN chmod 755 /usr/local/bin/docker-entrypoint.sh /app/gitea/gitea /usr/local/bin/environment-to-ini /usr/local/bin/docker-setup.sh #git:git USER 1000:1000 -- cgit v1.2.3