forked from lirantal/daloradius
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-standalone
38 lines (27 loc) · 1.18 KB
/
Dockerfile-standalone
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
FROM alpine AS source
RUN apk add git
WORKDIR /tmp/
RUN git clone https://github.com/lirantal/daloradius.git /tmp/daloradius
FROM php:7-apache
ENV TZ UTC
RUN apt-get update && apt-get -y upgrade \
&& apt-get -y install libpng-dev libjpeg62-turbo-dev libfreetype6-dev libwebp-dev libmariadb-dev --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \
&& update-ca-certificates -f
RUN docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-configure pdo_mysql \
&& docker-php-ext-configure mysqli \
&& docker-php-ext-install \
gd \
pdo_mysql \
mysqli
RUN pear channel-update pear.php.net \
&& pear install -a -f DB \
&& pear install -a -f Mail \
&& pear install -a -f Mail_Mime
COPY --from=source /tmp/daloradius/app/ /var/www/html/daloradius
COPY --from=source /tmp/daloradius/app/common/includes/daloradius.conf.php.sample /var/www/html/daloradius/common/includes/daloradius.conf.php
COPY --from=source /tmp/daloradius/contrib/scripts/apache-config.sh /usr/local/bin
RUN chmod +x /usr/local/bin/apache-config.sh \
&& sh /usr/local/bin/apache-config.sh