[ADD][WIP]Radicale image
This commit is contained in:
parent
fde99bb3cf
commit
72e7e548df
29
radicale/Dockerfile
Normal file
29
radicale/Dockerfile
Normal file
@ -0,0 +1,29 @@
|
||||
FROM debian:jessie
|
||||
|
||||
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/
|
||||
RUN mkdir /home/radicale/storage
|
||||
|
||||
# Persistent storage for data and configuration
|
||||
VOLUME /home/radicale/storage
|
||||
|
||||
# TCP port of Radicale
|
||||
EXPOSE 5232
|
||||
|
||||
# Run Radicale
|
||||
CMD [".local/bin/radicale", "--hosts", "0.0.0.0:5232"]
|
5
radicale/base.yml
Normal file
5
radicale/base.yml
Normal file
@ -0,0 +1,5 @@
|
||||
version: '2'
|
||||
services:
|
||||
radicale:
|
||||
build: .
|
||||
image: registry.yaltik.net/radicale:yaltik
|
3
radicale/config
Normal file
3
radicale/config
Normal file
@ -0,0 +1,3 @@
|
||||
[storage]
|
||||
filesystem_folder = /home/radicale/storage
|
||||
|
Loading…
Reference in New Issue
Block a user