Fix directory permissions

This commit is contained in:
TheMaddax 2024-12-09 15:14:35 -06:00
parent 533432ec1e
commit e0ba23928b
2 changed files with 5 additions and 3 deletions

View file

@ -2,8 +2,10 @@ FROM gitea/gitea:latest
USER root
RUN apk add --no-cache git-lfs && \
mkdir -p /.s6-svscan/gitea/log && \
mkdir -p /var/run/s6 && \
mkdir -p /var/run/s6 /run && \
touch /.s6-svscan/lock && \
chmod -R 777 /.s6-svscan && \
chmod 777 /var/run/s6
chmod 777 /var/run/s6 && \
chmod 777 /run && \
chown -R git:git /data /run

View file

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