FROM alpine:edge LABEL maintainer="Mike Crute " # locale-gen en_US.UTF-8 && \ RUN set -euxo pipefail; \ apk --no-cache add \ bash \ cgit \ dumb-init \ gitolite \ nginx \ openssh \ perl-json \ py3-pygments \ py3-docutils \ runit \ su-exec \ uwsgi \ uwsgi-cgi \ uwsgi-router_static \ ; \ rm -rf /etc/nginx; \ mkdir -p /srv/nginx-conf /logs; \ ln -s /usr/bin/rst2html /usr/bin/rst2html.py; \ addgroup -g 1005 -S code; \ adduser -u 1005 -s /bin/sh -S -h /srv/code -H -D -G code code; ADD etc/ /etc/ ADD code.crute.me /srv/nginx-conf/ ADD nginx_bootstrap / ENV ACTIVE_PROFILE INTERNAL ENV NGINX_PP_DISABLE_SSL_DEFAULT true STOPSIGNAL SIGHUP CMD [ "/usr/bin/dumb-init", "/sbin/runsvdir", "/etc/service" ]