summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 78ffc0ff3438366369d71e24ee632281137ecfc1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
FROM gogs/gogs:latest

MAINTAINER Suren A. Chilingaryan <csa@suren.me>

COPY ./root /

RUN mkdir -p /data/gogs/data /data/gogs/conf /data/gogs/log /data/git /data/ssh && \
    /usr/bin/fix-permissions /data && \
    ln -sfn /data/gogs/log  /app/gogs/log && \
    ln -sfn /data/gogs/data /app/gogs/data && \
    /usr/bin/fix-permissions /etc/passwd

ENTRYPOINT ["/entrypoint"]
CMD ["/usr/bin/rungogs"]