|
|
@ -81,11 +81,12 @@ RUN wget --progress=dot:giga https://dl.gitea.io/gitea/${GITEAV:?}/gitea-${GITEA |
|
|
|
chmod +x /usr/local/bin/gitea |
|
|
|
|
|
|
|
# make directories gitea needs |
|
|
|
RUN mkdir -p /var/lib/gitea/data/ /var/log/gitea /etc/gitea && \ |
|
|
|
RUN mkdir -p /vol/data/gitea /var/log/gitea /etc/gitea && \ |
|
|
|
chown -R gitea:gitea /var/lib/gitea /var/log/gitea && \ |
|
|
|
chmod -R 750 /var/lib/gitea /var/log/gitea && \ |
|
|
|
chmod -R 750 /var/lib/gitea /var/log/gitea /vol/data/gitea && \ |
|
|
|
ln -s /var/log/gitea /var/lib/gitea/log && \ |
|
|
|
ln -s /vol/data/custom /var/lib/gitea/custom |
|
|
|
ln -s /vol/data/custom /var/lib/gitea/custom && \ |
|
|
|
ln -s /vol/data/gitea /var/lib/gitea/data |
|
|
|
|
|
|
|
# copy config file |
|
|
|
COPY assets/app.config.ini /etc/gitea/ |
|
|
|