Code Repositories xandikos / 8d22e93
Initial work on Dockerfile. Jelmer Vernooń≥ 2 years ago
1 changed file(s) with 11 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
0 FROM debian:sid
1 LABEL maintainer="jelmer@jelmer.uk"
2 ARG port=80
3 RUN apt-get update && \
4 apt-get -y install uwsgi uwsgi-plugin-python3 python3-icalendar python3-dulwich python3-jinja2 python3-defusedxml && \
5 apt-get clean
6 ADD . /code
7 WORKDIR /code
8 VOLUME /data
9 EXPOSE $port
10 cMD uwsgi --http-socket=:$port --umask=022 --master --cheaper=2 --processes=4 --plugin=router_basicauth,python3 --route="^/ basicauth:myrealm,user1:password1" --module=xandikos.wsgi:app --env=XANDIKOSPATH=/data --env=CURRENT_USER_PRINCIPAL=/dav/user1 --env=AUTOCREATE=defaults