diff --git a/Dockerfile.rootless b/Dockerfile.rootless index 6c98c099ddf..7dbd8b0216c 100644 --- a/Dockerfile.rootless +++ b/Dockerfile.rootless @@ -50,8 +50,7 @@ RUN mkdir -p /var/lib/gitea /etc/gitea RUN chown git:git /var/lib/gitea /etc/gitea COPY docker/rootless / -COPY --from=build-env /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea -RUN chown root:root /usr/local/bin/* && chmod 755 /usr/local/bin/* +COPY --from=build-env --chown=root:root /go/src/code.gitea.io/gitea/gitea /usr/local/bin/gitea USER git:git ENV GITEA_WORK_DIR /var/lib/gitea