remove python2 support
This commit is contained in:
parent
5ec5b75558
commit
91a5a82c80
16
Dockerfile
16
Dockerfile
@ -1,21 +1,25 @@
|
|||||||
# Radicale Dockerfile
|
# Radicale Dockerfile
|
||||||
#
|
#
|
||||||
# VERSION 0.3
|
# VERSION 0.3.1
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
|
|
||||||
# Base packages
|
# Base packages
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
apk upgrade && \
|
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
|
# Radicale installation
|
||||||
RUN pip install passlib bcrypt
|
RUN mkdir -p /data/config
|
||||||
RUN mkdir -p /data/config && \
|
|
||||||
cd /data
|
|
||||||
COPY . /data/radicale
|
COPY . /data/radicale
|
||||||
COPY config /data/config
|
COPY config /data/config
|
||||||
RUN cd /data/radicale && python2.7 setup.py install
|
RUN cd /data/radicale && python3 setup.py install
|
||||||
|
|
||||||
# User
|
# User
|
||||||
RUN adduser -h /home/radicale -D radicale && \
|
RUN adduser -h /home/radicale -D radicale && \
|
||||||
|
Loading…
Reference in New Issue
Block a user