Fix directory permissions
This commit is contained in:
parent
533432ec1e
commit
e0ba23928b
2 changed files with 5 additions and 3 deletions
|
|
@ -2,8 +2,10 @@ FROM gitea/gitea:latest
|
||||||
USER root
|
USER root
|
||||||
RUN apk add --no-cache git-lfs && \
|
RUN apk add --no-cache git-lfs && \
|
||||||
mkdir -p /.s6-svscan/gitea/log && \
|
mkdir -p /.s6-svscan/gitea/log && \
|
||||||
mkdir -p /var/run/s6 && \
|
mkdir -p /var/run/s6 /run && \
|
||||||
touch /.s6-svscan/lock && \
|
touch /.s6-svscan/lock && \
|
||||||
chmod -R 777 /.s6-svscan && \
|
chmod -R 777 /.s6-svscan && \
|
||||||
chmod 777 /var/run/s6
|
chmod 777 /var/run/s6 && \
|
||||||
|
chmod 777 /run && \
|
||||||
|
chown -R git:git /data /run
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
environment:
|
environment:
|
||||||
- USER=root
|
- USER=git
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
# Core settings
|
# Core settings
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue