forked from andig/carddav2fb
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
33 lines (29 loc) · 844 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM alpine:3.12
LABEL description="Download CardDAV VCards and upload as phonebook to AVM FRITZ!Box"
VOLUME [ "/data" ]
# Install dependencies for carddav2fb
RUN set -xe && \
apk update && apk upgrade && \
apk add --no-cache --virtual=run-deps \
php7-cli \
php7-curl \
php7-dom \
php7-ftp \
php7-gd \
php7-mbstring \
php7-simplexml \
php7-tokenizer \
php7-xml \
php7-xmlreader \
php7-xmlwriter \
composer && \
apk del --progress --purge && \
rm -rf /var/cache/apk/*
# Copy carddav2fb and install php dependencies
COPY . /srv
RUN mkdir -p /data && \
cd /srv && \
composer install --no-dev && \
chmod +x /srv/carddav2fb /srv/docker-entrypoint && \
ln -s /data/config.php .
ENTRYPOINT [ "/srv/docker-entrypoint" ]