forked from allan-young/ianseo-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
38 lines (33 loc) · 1.19 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
# This file is part of ianseo-docker, which is distributed under
# the terms of the General Public License (GPL), version 3. See
# LICENSE.txt for details.
#
# Copyright (C) 2020 Allan Young
FROM php:7.4.2-apache
RUN apt-get update && apt-get -y install \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmagickwand-dev \
libpng-dev \
mariadb-client \
unzip \
vim \
zip \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd mysqli
# The following is used to get the imagick php extension since
# php-imagick is not available via apt in the php docker container.
# Yes, this is another RUN command and another layer but I figured it
# would be good to present this separately, perhaps the following can
# get dropped if/when php-imagick is available via apt in the php
# container.
RUN pecl install imagick-3.4.4 \
&& docker-php-ext-enable imagick
# Drop in an assortment of configuration information and the ianseo
# release.
COPY web/ianseo.conf /etc/apache2/conf-available/
COPY web/php.ini /usr/local/etc/php/
COPY web/web_prep.sh /tmp
COPY web/phpinfo.php /tmp
COPY Ianseo_20190701.zip /tmp
RUN /tmp/web_prep.sh