-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
executable file
·51 lines (46 loc) · 1.27 KB
/
Copy pathDockerfile
File metadata and controls
executable file
·51 lines (46 loc) · 1.27 KB
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:8.2.27
LABEL maintainer="hello@thomascenni.com"
LABEL version="v1.6.2"
ARG VERSION="v1.6.2"
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 \
php82-ctype \
php82-bcmath \
php82-dom \
php82-gd \
php82-mysqli \
php82-mysqlnd \
php82-openssl \
php82-pdo_mysql \
php82-fileinfo \
php82-posix \
php82-session \
php82-tokenizer \
php82-xml \
php82-zip \
php82-zlib \
php82-exif \
php82-simplexml \
php82-xmlreader \
php82-xmlwriter \
php82-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"]