From da673bfefc85fbaf5f399b64d6bfb2f8128dbbf6 Mon Sep 17 00:00:00 2001 From: TheMaddax Date: Mon, 9 Dec 2024 15:09:25 -0600 Subject: [PATCH] Fix directory permissions --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 718aa32..5c00ef4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,11 @@ FROM gitea/gitea:latest USER root RUN apk add --no-cache git-lfs && \ - mkdir -p /.s6-svscan/gitea/log && \ - echo '#!/bin/sh\nexec /usr/local/bin/gitea web' > /.s6-svscan/gitea/run && \ - chmod +x /.s6-svscan/gitea/run && \ - chmod -R 777 /.s6-svscan && \ - chown -R git:git /.s6-svscan -USER git + mkdir -p /.s6-svscan && \ + mkdir -p /var/run/s6 && \ + chmod 777 /.s6-svscan && \ + chmod 777 /var/run/s6 && \ + touch /.s6-svscan/lock && \ + chmod 666 /.s6-svscan/lock +# Stay as root for now