-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.base
33 lines (29 loc) · 984 Bytes
/
Dockerfile.base
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
ARG BASE_IMAGE=php
ARG BASE_TAG=8.2.8-apache-bullseye
FROM ${BASE_IMAGE}:${BASE_TAG}
LABEL maintainer="GeoKrety Team <[email protected]>"
WORKDIR /var/www/html
ENTRYPOINT ["/geokrety-entrypoint.sh"]
CMD ["apache2-foreground"]
RUN apt-get update \
&& apt-get install -y \
libmagickwand-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libpng-dev \
graphicsmagick-imagemagick-compat \
zip \
vim \
&& apt-get clean \
&& rm -r /var/lib/apt/lists/* \
\
&& a2enmod rewrite \
\
&& curl -sSL https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin/ \
\
&& pecl install imagick \
&& docker-php-ext-enable imagick
COPY docker/files/ /
COPY --chown=www-data:www-data composer.json /var/www/html/composer.json
COPY --chown=www-data:www-data composer.lock /var/www/html/composer.lock
RUN composer install --no-scripts --no-dev --no-autoloader --no-interaction