Fix directory permissions

This commit is contained in:
TheMaddax 2024-12-09 15:19:18 -06:00
parent e0ba23928b
commit 0677de36b0
2 changed files with 9 additions and 10 deletions

View file

@ -1,11 +1,12 @@
FROM gitea/gitea:latest
USER root
RUN apk add --no-cache git-lfs && \
mkdir -p /.s6-svscan/gitea/log && \
mkdir -p /var/run/s6 /run && \
touch /.s6-svscan/lock && \
chmod -R 777 /.s6-svscan && \
chmod 777 /var/run/s6 && \
chmod 777 /run && \
chown -R git:git /data /run
RUN apk add --no-cache git-lfs
RUN mkdir -p /.s6-svscan/gitea/log \
&& mkdir -p /var/run/s6 /run \
&& touch /.s6-svscan/lock \
&& chmod -R 777 /.s6-svscan \
&& chmod 777 /var/run/s6 \
&& chmod 777 /run
# Don't chown /data here as it's a volume
RUN chown -R git:git /run

View file

@ -1,5 +1,3 @@
version: '3'
services:
gitea:
container_name: gitea