blob: b867c36383343d5dd68b56e1a5d7ad855dc8fab6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
FROM alpine:edge
LABEL maintainer="Mike Crute <mike@crute.us>"
RUN set -euxo pipefail; \
apk --no-cache add \
bash \
cgit \
gitolite \
nginx \
openssh \
perl-json \
py3-pygments \
py3-docutils \
uwsgi \
uwsgi-cgi \
uwsgi-router_static \
libcap \
; \
mkdir -p /logs; \
rm /etc/nginx/nginx.conf; \
ln -sf /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; \
setcap cap_net_bind_service=+ep /usr/sbin/sshd;
ADD nginx.conf /etc/nginx/nginx.conf
ADD /simplevisor /simplevisor
ADD /simplevisor.json /simplevisor.json
ADD /ssh-setup.sh /ssh-setup.sh
ADD /code.ini /etc/uwsgi/code.ini
ADD /sshd_config /etc/ssh/sshd_config
CMD [ "/simplevisor", "--no-vault" ]
|