|
|
@ -8,15 +8,15 @@ FROM localhost/debian:latest |
|
|
|
LABEL deployopts="\ |
|
|
|
-p 9081:80 \ |
|
|
|
-p 9022:22 \ |
|
|
|
-v /tank/files/git:/vol/git \ |
|
|
|
-v /tank/files/db/gitea:/vol/db" |
|
|
|
-v /srv/vol/gitea/git:/vol/git \ |
|
|
|
-v /srv/vol/gitea/db:/vol/db" |
|
|
|
# make sure mount directories exist |
|
|
|
RUN mkdir -p /vol/git /vol/db |
|
|
|
|
|
|
|
# Build variables |
|
|
|
# version of Gitea |
|
|
|
# see the Gitea github page to determine the latest stable release |
|
|
|
ARG giteav=1.11.5 |
|
|
|
ARG giteav=1.12.1 |
|
|
|
# version of postgres |
|
|
|
ARG psqlv=11 |
|
|
|
# uid that the files owner user should have |
|
|
@ -82,11 +82,3 @@ COPY assets/gitea.service /etc/systemd/system/ |
|
|
|
### |
|
|
|
COPY assets/crontab /root/ |
|
|
|
RUN crontab -u gitea /root/crontab |
|
|
|
|
|
|
|
### |
|
|
|
### Bugfix |
|
|
|
### |
|
|
|
|
|
|
|
# execute command to workaround bug in cron |
|
|
|
COPY bugfix/cronfix /root/ |
|
|
|
RUN chmod +x /root/cronfix && /root/cronfix |
|
|
|