aboutsummaryrefslogblamecommitdiff
path: root/roles/git/files/gitolite-cgit/Dockerfile
blob: 509a611eeda047c65e7bd5595c5f3338c54cb016 (plain) (tree)
























                                                         
FROM alpine:latest

RUN apk add --update-cache --upgrade --no-cache --purge \
      gitolite openssh                                  \
      cgit nginx fcgiwrap spawn-fcgi                    \
      py3-markdown py3-pygments                         \
    && rm -rf /var/cache/apk

VOLUME /var/lib/git
EXPOSE 22 80

# -- sshd
COPY etc/sshd_config /etc/ssh/sshd_config

# -- nginx
COPY etc/cgit.conf /etc/nginx/http.d

# -- cgit
COPY etc/cgitrc /etc/cgitrc

# -- gitolite
COPY etc/gitolite.rc /etc/gitolite.rc

COPY entrypoint.sh /
ENTRYPOINT ["/entrypoint.sh"]