Added a Dockerfile for app only as first step to containerization. See also PR#68.
[timetracker.git] / Dockerfile
1 FROM php:7.2-apache
2
3 # Use the default production configuration.
4 RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
5
6 # Override with custom settings.
7 # COPY config/php_tt.ini $PHP_INI_DIR/conf.d/
8
9 # Install mysqli extension.
10 RUN docker-php-ext-install mysqli
11
12 # Install gd extension.
13 RUN apt-get update && apt-get install libpng-dev -y \
14  && docker-php-ext-install gd
15
16 # Install ldap extension.
17 RUN apt-get install libldap2-dev -y \
18   && docker-php-ext-install ldap
19 # TODO: check if ldap works, as the above is missing this step:
20 # && docker-php-ext-configure ldap --with-libdir=lib/x86_64-linux-gnu/ && \
21
22 # Cleanup. The intention was to keep image size down.
23 # RUN rm -rf /var/lib/apt/lists/*
24 #
25 # The above does not work. Files are removed, but
26 # image files (zipped or not) are not getting smaller. Why?
27
28 COPY . /var/www/html/
29