forked from sameersbn/docker-invoiceplane
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
32 lines (26 loc) · 1.17 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
FROM sameersbn/php5-fpm:latest
MAINTAINER [email protected]
ENV INVOICEPLANE_VERSION=1.4.6 \
INVOICEPLANE_USER=${PHP_FPM_USER} \
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-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 8B3981E7A6852F782CC4951600A6F0A3C300EE8C \
&& echo "deb http://ppa.launchpad.net/nginx/stable/ubuntu trusty main" >> /etc/apt/sources.list \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y \
php5-mysql php5-mcrypt mysql-client nginx gettext-base \
&& php5enmod mcrypt \
&& 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
VOLUME ["${INVOICEPLANE_DATA_DIR}"]
WORKDIR ${INVOICEPLANE_INSTALL_DIR}
ENTRYPOINT ["/sbin/entrypoint.sh"]
CMD ["app:invoiceplane"]