diff --git a/Dockerfile b/Dockerfile index 153e153..e9a66e1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,6 +16,9 @@ RUN passwd -d git RUN mkdir -p /home/git/gitea WORKDIR /home/git +# for autosign feature +ENV GNUPGHOME="/app/data/gnupg" + ARG VERSION=1.17.3 RUN curl -L https://dl.gitea.io/gitea/${VERSION}/gitea-${VERSION}-linux-amd64 -o /home/git/gitea/gitea \ diff --git a/start.sh b/start.sh index 69fdcae..ba2e40d 100755 --- a/start.sh +++ b/start.sh @@ -122,11 +122,10 @@ crudini --set "/run/gitea/app.ini" log ROOT_PATH "/run/gitea" crudini --set "/run/gitea/app.ini" indexer ISSUE_INDEXER_PATH "/app/data/appdata/indexers/issues.bleve" echo "==> Creating dirs and changing permissions" -mkdir -p /app/data/repository /app/data/ssh /app/data/custom +mkdir -p /app/data/repository /app/data/ssh /app/data/custom /app/data/gnupg chown -R git:git /app/data /run/gitea # this expects app.ini to be available ( setup_auth ) & exec /usr/bin/supervisord --configuration /etc/supervisor/supervisord.conf --nodaemon -i Gitea - diff --git a/supervisor/sshd.conf b/supervisor/sshd.conf index 52f7f4f..274c89e 100644 --- a/supervisor/sshd.conf +++ b/supervisor/sshd.conf @@ -8,4 +8,3 @@ stdout_logfile=/dev/stdout stdout_logfile_maxbytes=0 stderr_logfile=/dev/stderr stderr_logfile_maxbytes=0 -