-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathDockerfile
21 lines (17 loc) · 916 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
FROM php:7.4.10-apache
# To access a MySQL database the according PHP module must be installed
RUN docker-php-ext-install mysqli && docker-php-ext-enable mysqli
# The .htaccess file in the export API folder contains rewrite rules. Those
# rules are not supported by Apache by default. The according Apache module
# must be installed. Otherwise the BNote-App will not work.
RUN a2enmod rewrite
# The SimpleImage class used by website module and share module requires the GD
# library for basic image processing. The base Docker image does not include
# that library. The PHP GD library module itself needs libraries to handle PNG
# and JPEG.
RUN apt-get update -y && apt-get install -y libpng-dev libjpeg-dev
RUN docker-php-ext-configure gd --with-jpeg
RUN docker-php-ext-install gd
# The PHP module zip is required for downloading share folders.
RUN apt-get install -y libzip-dev
RUN docker-php-ext-install zip