docker_images/radicale/Dockerfile

34 lines
807 B
Docker
Raw Normal View History

2017-08-03 08:14:44 +02:00
FROM debian:jessie
# http://bugs.python.org/issue19846
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
ENV LANG C.UTF-8
2017-08-03 08:14:44 +02:00
ENV VERSION 2.1.2
# Install dependencies
RUN apt update && apt install -y --no-install-recommends python3 python3-pip
# Packages cleanup
RUN apt-get purge -y --auto-remove \
&& apt-get clean
# Create radicale user
RUN useradd radicale -md /opt/radicale
WORKDIR /opt/radicale
USER radicale
# Install Radicale
RUN pip3 install --user --upgrade radicale==${VERSION}
COPY config .config/radicale/config/
2017-08-03 08:21:22 +02:00
RUN mkdir /opt/radicale/storage
2017-08-03 08:14:44 +02:00
# Persistent storage for data and configuration
2017-08-03 08:21:22 +02:00
VOLUME /opt/radicale/storage
2017-08-03 08:14:44 +02:00
# TCP port of Radicale
EXPOSE 5232
# Run Radicale
CMD [".local/bin/radicale", "--hosts", "0.0.0.0:5232"]