-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
34 lines (23 loc) · 1.02 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
FROM php:5-apache
ARG DATENCOCKPIT_SITENAME
ARG DATENCOCKPIT_URL
ARG DATENCOCKPIT_EMERGENCY_CONTACT
ARG DATENCOCKPIT_DB_HOST
ARG DATENCOCKPIT_DB_NAME
ARG DATENCOCKPIT_DB_USER
ARG DATENCOCKPIT_DB_PASSWORD
RUN docker-php-ext-install mysqli
RUN apt-get update && apt-get install -y \
libmagickwand-dev --no-install-recommends \
&& pecl install imagick \
&& docker-php-ext-enable imagick
RUN apt-get -y install gettext-base wget \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www/html
USER www-data:www-data
RUN wget https://github.com/krabina/Datencockpit/releases/download/1.0/datencockpit.tar.gz && tar -xzvf datencockpit.tar.gz --strip-components=1
ADD LocalSettings.php.template /var/www/html
RUN envsubst '$DATENCOCKPIT_SITENAME $DATENCOCKPIT_URL $DATENCOCKPIT_EMERGENCY_CONTACT $DATENCOCKPIT_DB_HOST $DATENCOCKPIT_DB_NAME $DATENCOCKPIT_DB_USER $DATENCOCKPIT_DB_PASSWORD $HABIDAT_USER_NEXTCLOUD_DB_PASSWORD' < LocalSettings.php.template > LocalSettings.php
ADD update.sh /var/www/html
USER root