diff --git a/radicale/Dockerfile b/radicale/Dockerfile index fe5ec1a..10bf2ad 100644 --- a/radicale/Dockerfile +++ b/radicale/Dockerfile @@ -11,8 +11,7 @@ ENV VERSION 2.1.9 RUN apt-get update && apt-get install -y --no-install-recommends python3 python3-pip # Packages cleanup -RUN apt-get purge -y --auto-remove \ - && apt-get clean +RUN apt-get purge -y --auto-remove && apt-get clean # Create radicale user RUN useradd radicale -md /opt/radicale @@ -21,7 +20,7 @@ USER radicale # Install Radicale RUN pip3 install --user --upgrade radicale==${VERSION} -COPY config .config/radicale/config/ +COPY config /opt/radicale/radicale.conf RUN mkdir /opt/radicale/storage # Persistent storage for data and configuration @@ -31,4 +30,4 @@ VOLUME /opt/radicale/storage EXPOSE 5232 # Run Radicale -CMD [".local/bin/radicale", "--hosts", "0.0.0.0:5232"] +CMD .local/bin/radicale --config /opt/radicale/radicale.conf diff --git a/radicale/config b/radicale/config index fc33d6e..978d927 100644 --- a/radicale/config +++ b/radicale/config @@ -1,2 +1,9 @@ +[server] +# Bind all addresses +hosts = 0.0.0.0:5232 + +[auth] +type = None + [storage] filesystem_folder = /opt/radicale/storage