Fix directory permissions

This commit is contained in:
TheMaddax 2024-12-09 15:12:50 -06:00
parent da673bfefc
commit 533432ec1e
2 changed files with 4 additions and 5 deletions

View file

@ -1,11 +1,9 @@
FROM gitea/gitea:latest
USER root
RUN apk add --no-cache git-lfs && \
mkdir -p /.s6-svscan && \
mkdir -p /.s6-svscan/gitea/log && \
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
chmod -R 777 /.s6-svscan && \
chmod 777 /var/run/s6

View file

@ -8,6 +8,7 @@ services:
context: .
dockerfile: Dockerfile
environment:
- USER=root
- USER_UID=1000
- USER_GID=1000
# Core settings