-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathDockerfile
20 lines (19 loc) · 821 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Docker file for Xandikos.
#
# Note that this dockerfile starts Xandikos without any authentication;
# for authenticated access we recommend you run it behind a reverse proxy.
FROM debian:sid-slim
LABEL maintainer="[email protected]"
RUN apt-get update && \
apt-get -y install --no-install-recommends python3-icalendar python3-dulwich python3-jinja2 python3-defusedxml python3-aiohttp python3-vobject python3-aiohttp-openmetrics && \
apt-get clean && \
rm -rf /var/lib/apt/lists/ && \
groupadd -g 1000 xandikos && \
useradd -d /code -c Xandikos -g xandikos -M -s /bin/bash -u 1000 xandikos
ADD . /code
WORKDIR /code
VOLUME /data
EXPOSE 8000
USER xandikos
ENTRYPOINT ["python3", "-m", "xandikos.web", "--port=8000", "--metrics-port=8001", "--listen-address=0.0.0.0", "-d", "/data"]
CMD ["--defaults"]