Fix directory permissions

This commit is contained in:
TheMaddax 2024-12-09 15:02:43 -06:00
parent 52f2d131c4
commit 78eae9643c

View file

@ -1,11 +1,5 @@
FROM gitea/gitea:latest
USER root
RUN apk add --no-cache git-lfs && \
mkdir -p /.s6-svscan /var/run/s6 && \
chown -R git:git /.s6-svscan /var/run/s6 && \
chmod -R 755 /.s6-svscan /var/run/s6
# Set correct permissions for postgres
RUN mkdir -p /var/run/postgresql && \
chown -R git:git /var/run/postgresql
USER git
RUN apk add --no-cache git-lfs
# Stay as root for debugging