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
|
||||
USER root
|
||||
RUN apk add --no-cache git-lfs && \
|
||||
mkdir -p /.s6-svscan && \
|
||||
mkdir -p /.s6-svscan/gitea/log && \
|
||||
mkdir -p /var/run/s6 && \
|
||||
chmod 777 /.s6-svscan && \
|
||||
chmod 777 /var/run/s6 && \
|
||||
touch /.s6-svscan/lock && \
|
||||
chmod 666 /.s6-svscan/lock
|
||||
# Stay as root for now
|
||||
chmod -R 777 /.s6-svscan && \
|
||||
chmod 777 /var/run/s6
|
||||
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ services:
|
|||
context: .
|
||||
dockerfile: Dockerfile
|
||||
environment:
|
||||
- USER=root
|
||||
- USER_UID=1000
|
||||
- USER_GID=1000
|
||||
# Core settings
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue