[IMP]Base radicale image

This commit is contained in:
Fabien BOURGEOIS 2018-05-04 08:53:28 +02:00
parent 0c65a69b3f
commit 8cef1a9a6d
2 changed files with 10 additions and 4 deletions

View File

@ -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

View File

@ -1,2 +1,9 @@
[server]
# Bind all addresses
hosts = 0.0.0.0:5232
[auth]
type = None
[storage]
filesystem_folder = /opt/radicale/storage