From 91a5a82c80f74167e2368e1c1c239c7cc010138c Mon Sep 17 00:00:00 2001 From: cdpb Date: Sat, 2 Apr 2016 10:35:39 +0200 Subject: [PATCH] remove python2 support --- Dockerfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index b82177f..20276df 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,21 +1,25 @@ # Radicale Dockerfile # -# VERSION 0.3 +# VERSION 0.3.1 FROM alpine:latest # Base packages RUN apk update && \ apk upgrade && \ - apk add ca-certificates git python python-dev py-setuptools py-pip build-base libffi-dev + apk add python3 python3-dev build-base libffi-dev + +# Python installation +# pip +ADD https://bootstrap.pypa.io/get-pip.py /tmp/install/ +RUN python3 /tmp/install/* && \ + pip install passlib bcrypt setuptools # Radicale installation -RUN pip install passlib bcrypt -RUN mkdir -p /data/config && \ - cd /data +RUN mkdir -p /data/config COPY . /data/radicale COPY config /data/config -RUN cd /data/radicale && python2.7 setup.py install +RUN cd /data/radicale && python3 setup.py install # User RUN adduser -h /home/radicale -D radicale && \