Skip to content

Instantly share code, notes, and snippets.

@cdpb
Created February 17, 2016 08:44
Show Gist options
  • Save cdpb/9f57735839b369197ed6 to your computer and use it in GitHub Desktop.
Save cdpb/9f57735839b369197ed6 to your computer and use it in GitHub Desktop.
Radicale Alpine
# Radicale Dockerfile
#
# VERSION 0.3
FROM alpine:latest
# Base packages
RUN apk update && apk upgrade
RUN apk add ca-certificates git python python-dev py-setuptools py-pip build-base libffi-dev
# Radicale installation
RUN pip install passlib bcrypt
RUN mkdir -p /data/config && \
cd /data
COPY . /data/radicale
COPY config /data/config
RUN cd /data/radicale && python2.7 setup.py install
# User
RUN adduser -h /home/radicale -D radicale && \
mkdir -p /home/radicale/.config && \
ln -s /data/config /home/radicale/.config/radicale && \
chown -R radicale:radicale /data/config && \
chown -R radicale:radicale /home/radicale
USER radicale
WORKDIR /home/radicale
CMD ["radicale", "-D", "-C", "/data/config/config"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment