-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile-dev
34 lines (28 loc) · 955 Bytes
/
Dockerfile-dev
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
FROM alpine:3.17
MAINTAINER Matthew Horwood <[email protected]>
RUN apk update \
&& apk add nginx php81-fpm \
php81-gd php81-mbstring php81-mysqli php81-openssl \
php81-xml php81-intl php81-bcmath composer curl \
&& rm -f /var/cache/apk/* \
&& mkdir -p /var/www/html/ \
&& mkdir -p /run/nginx;
ENV IP_SOURCE="https://github.com/InvoicePlane/InvoicePlane/releases/download" \
IP_VERSION="v1.6.0" \
MYSQL_HOST="mysql" \
MYSQL_USER="root" \
MYSQL_PASSWORD="my-secret-pw" \
MYSQL_DB="invoiceplane" \
MYSQL_PORT="3306" \
IP_URL="http://127.0.0.1" \
HOST_URL="127.0.0.1" \
DISABLE_SETUP="false"
COPY setup /config
WORKDIR /var/www/html
VOLUME /var/www/html/uploads
EXPOSE 80
ENTRYPOINT ["/config/start.sh"]
CMD ["nginx", "-g", "daemon off;"]
## Health Check
HEALTHCHECK --interval=1m --timeout=3s --start-period=5s \
CMD curl -f http://127.0.0.1/index.php || exit 1