-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
executable file
·51 lines (46 loc) · 1.26 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM woahbase/alpine-php:x86_64
LABEL maintainer="[email protected]"
LABEL version="v1.5.11"
ARG VERSION="v1.5.11"
ENV INVOICEPLANE_SRC=/opt/invoiceplane/invoiceplane.zip
ENV IP_URL="http://localhost" \
DB_HOSTNAME="localhost" \
DB_USERNAME="invoiceplane" \
DB_PASSWORD="invoiceplane" \
DB_DATABASE="invoiceplane" \
DB_PORT="3306"
ARG PUID=1000
ARG PGID=1000
RUN set -xe \
&& apk add --no-cache --purge -uU \
curl \
unzip \
php7-ctype \
php7-bcmath \
php7-dom \
php7-gd \
php7-mysqli \
php7-mysqlnd \
php7-openssl \
php7-pdo_mysql \
php7-fileinfo \
php7-posix \
php7-session \
php7-tokenizer \
php7-xml \
php7-zip \
php7-zlib \
php7-exif \
php7-simplexml \
php7-xmlreader \
php7-xmlwriter \
php7-gmp \
&& mkdir -p /opt/invoiceplane \
&& echo "InvoicePlane version: ${VERSION}" > /opt/invoiceplane/version \
&& curl -o ${INVOICEPLANE_SRC} -SL "https://github.com/InvoicePlane/InvoicePlane/releases/download/${VERSION}/${VERSION}.zip" \
&& unzip -qt ${INVOICEPLANE_SRC} \
&& rm -rf /var/cache/apk/* /tmp/*
# add local files
COPY root/ /
# ports, volumes etc from php
# ENTRYPOINT ["/init"]