diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2022-01-11 12:35:47 +0100 |
commit | 19985dbb8c0aa66dc4bf7905abc1148de909097d (patch) | |
tree | 2cd5a5d20d7e80fc2a51adf60d838d8a2c40999e /utils/Docker/Dockerfile | |
download | 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.gz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.bz2 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.lz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.xz 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.tar.zst 1ka-19985dbb8c0aa66dc4bf7905abc1148de909097d.zip |
Diffstat (limited to 'utils/Docker/Dockerfile')
-rw-r--r-- | utils/Docker/Dockerfile | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/utils/Docker/Dockerfile b/utils/Docker/Dockerfile new file mode 100644 index 0000000..65b2f53 --- /dev/null +++ b/utils/Docker/Dockerfile @@ -0,0 +1,35 @@ +FROM php:7.4-apache-buster
+
+# Apache packages
+RUN apt-get update -y \
+ && apt-get upgrade -y \
+ && apt-get install -y \
+ libgd-dev \
+ libfreetype6-dev \
+ libjpeg62-turbo-dev \
+ libpng-dev \
+ libxml2-dev \
+ zlib1g-dev \
+ texlive-full \
+ latex2rtf \
+ libzip-dev \
+ zip \
+ && apt-get clean \
+ && rm -rf /var/lib/apt/lists/*
+
+# PHP configure freetype
+RUN docker-php-ext-configure gd --with-freetype=/usr/include/ --with-jpeg=/usr/include/
+
+# PHP modules
+RUN /usr/local/bin/docker-php-ext-install \
+ mysqli \
+ pdo \
+ pdo_mysql \
+ bcmath \
+ soap \
+ gd \
+ zip
+
+# Enable rewrite module
+RUN a2enmod rewrite
+
|