Fix directory permissions
This commit is contained in:
parent
c691a149c4
commit
da673bfefc
1 changed files with 7 additions and 6 deletions
13
Dockerfile
13
Dockerfile
|
|
@ -1,10 +1,11 @@
|
|||
FROM gitea/gitea:latest
|
||||
USER root
|
||||
RUN apk add --no-cache git-lfs && \
|
||||
mkdir -p /.s6-svscan/gitea/log && \
|
||||
echo '#!/bin/sh\nexec /usr/local/bin/gitea web' > /.s6-svscan/gitea/run && \
|
||||
chmod +x /.s6-svscan/gitea/run && \
|
||||
chmod -R 777 /.s6-svscan && \
|
||||
chown -R git:git /.s6-svscan
|
||||
USER git
|
||||
mkdir -p /.s6-svscan && \
|
||||
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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue