forked from sameersbn/docker-invoiceplane
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
41 lines (28 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
FROM ubuntu:18.04-slim
LABEL maintainer="sameer@damagehead.com"
ENV PHP_VERSION=8.1 \
INVOICEPLANE_VERSION=1.6.1 \
INVOICEPLANE_USER=www-data \
INVOICEPLANE_INSTALL_DIR=/var/www/invoiceplane \
INVOICEPLANE_DATA_DIR=/var/lib/invoiceplane \
INVOICEPLANE_CACHE_DIR=/etc/docker-invoiceplane
ENV INVOICEPLANE_BUILD_DIR=${INVOICEPLANE_CACHE_DIR}/build \
INVOICEPLANE_RUNTIME_DIR=${INVOICEPLANE_CACHE_DIR}/runtime
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y wget sudo unzip \
php${PHP_VERSION}-fpm php${PHP_VERSION}-cli php${PHP_VERSION}-mysql \
php${PHP_VERSION}-gd php${PHP_VERSION}-json php${PHP_VERSION}-mbstring \
php${PHP_VERSION}-recode php${PHP_VERSION}-xmlrpc \
mysql-client nginx gettext-base git \
&& sed -i 's/^listen = .*/listen = 0.0.0.0:9000/' /etc/php/${PHP_VERSION}/fpm/pool.d/www.conf \
&& rm -rf /var/lib/apt/lists/*
COPY assets/build/ ${INVOICEPLANE_BUILD_DIR}/
RUN bash ${INVOICEPLANE_BUILD_DIR}/install.sh
COPY assets/runtime/ ${INVOICEPLANE_RUNTIME_DIR}/
COPY assets/tools/ /usr/bin/
COPY entrypoint.sh /sbin/entrypoint.sh
RUN chmod 755 /sbin/entrypoint.sh
WORKDIR ${INVOICEPLANE_INSTALL_DIR}
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:invoiceplane"]
EXPOSE 80/tcp 9000/tcp