updated alpine and hardcoded user id
parent
dd55fd65a5
commit
7ae908c443
|
@ -1,11 +1,15 @@
|
||||||
FROM alpine:3.11
|
FROM alpine:3.13
|
||||||
|
|
||||||
RUN apk add --no-cache python3 su-exec && \
|
RUN apk add --no-cache python3 py3-pip su-exec && \
|
||||||
apk add --no-cache --virtual .build-deps py3-pip && \
|
|
||||||
pip3 install --upgrade pip && \
|
pip3 install --upgrade pip && \
|
||||||
pip3 install vdirsyncer vdirsyncer[google] requests_oauthlib && \
|
pip3 install vdirsyncer vdirsyncer[google] requests_oauthlib && \
|
||||||
apk del .build-deps && \
|
addgroup --gid 10001 vdirsyncer && \
|
||||||
adduser -D -h /var/lib/vdirsyncer vdirsyncer && \
|
adduser \
|
||||||
|
--empty-password \
|
||||||
|
--home /var/lib/vdirsyncer \
|
||||||
|
--uid 10000 \
|
||||||
|
--ingroup vdirsyncer \
|
||||||
|
vdirsyncer && \
|
||||||
mkdir -p /var/lib/vdirsyncer/status /var/lib/vdirsyncer/tokens && \
|
mkdir -p /var/lib/vdirsyncer/status /var/lib/vdirsyncer/tokens && \
|
||||||
touch /var/lib/vdirsyncer/config && \
|
touch /var/lib/vdirsyncer/config && \
|
||||||
chown -R vdirsyncer:vdirsyncer /var/lib/vdirsyncer
|
chown -R vdirsyncer:vdirsyncer /var/lib/vdirsyncer
|
||||||
|
|
Loading…
Reference in New Issue