-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (25 loc) · 997 Bytes
/
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
FROM php:7.3.10-apache-stretch
LABEL maintainer="Christian Pedersen <[email protected]>"
LABEL application="Unofficial Live!Zilla - Docker"
ENV DEBIAN_FRONTEND=noninteractive
ENV PACKAGE_URL="https://www.livezilla.net/downloads/pubfiles/livezilla_server_8.0.1.4.zip"
ENV LIVEZILLA_VERSION="8.0.1.4"
RUN apt-get update && apt-get --no-install-recommends install -y \
unzip \
libfreetype6-dev \
libjpeg-dev \
libpng-dev && \
docker-php-ext-configure gd \
--with-freetype-dir=/usr/include/freetype2 \
--with-png-dir=/usr/include \
--with-jpeg-dir=/usr/include && \
rm -rf /var/lib/apt/lists/* && \
docker-php-ext-install gd mysqli && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
COPY assets/. /usr/local/bin/
RUN chmod +x /usr/local/bin/livezilla-*
EXPOSE 80 443
VOLUME [ "/var/www/html" ]
ENTRYPOINT [ "livezilla-docker-entrypoint.sh" ]
WORKDIR /var/www/html
CMD [ "apache2-foreground" ]