Fix directory permissions
This commit is contained in:
parent
e0ba23928b
commit
0677de36b0
2 changed files with 9 additions and 10 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
gitea:
|
||||
container_name: gitea
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue