Fix directory permissions
This commit is contained in:
parent
da673bfefc
commit
533432ec1e
2 changed files with 4 additions and 5 deletions
|
|
@ -1,11 +1,9 @@
|
||||||
FROM gitea/gitea:latest
|
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 && \
|
mkdir -p /.s6-svscan/gitea/log && \
|
||||||
mkdir -p /var/run/s6 && \
|
mkdir -p /var/run/s6 && \
|
||||||
chmod 777 /.s6-svscan && \
|
|
||||||
chmod 777 /var/run/s6 && \
|
|
||||||
touch /.s6-svscan/lock && \
|
touch /.s6-svscan/lock && \
|
||||||
chmod 666 /.s6-svscan/lock
|
chmod -R 777 /.s6-svscan && \
|
||||||
# Stay as root for now
|
chmod 777 /var/run/s6
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -8,6 +8,7 @@ services:
|
||||||
context: .
|
context: .
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
environment:
|
environment:
|
||||||
|
- USER=root
|
||||||
- USER_UID=1000
|
- USER_UID=1000
|
||||||
- USER_GID=1000
|
- USER_GID=1000
|
||||||
# Core settings
|
# Core settings
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue