m1k1oblog/Dockerfile

31 lines
675 B
Text
Raw Normal View History

2019-12-23 21:03:22 +00:00
FROM php:7.4-apache
RUN set -eux; apt-get update; \
2021-10-29 19:56:50 +00:00
apt-get install -y --no-install-recommends libpq-dev \
#
# install curl
2020-06-07 12:29:05 +00:00
libcurl4-openssl-dev \
#
# install gd dependencies
2020-06-07 12:29:05 +00:00
zlib1g-dev libpng-dev libjpeg-dev \
libwebp-dev libxpm-dev libfreetype6-dev; \
#
# clean up
rm -rf /var/lib/apt/lists/*; \
#
# configure extensions
docker-php-ext-configure gd --enable-gd \
--with-jpeg --with-webp --with-xpm --with-freetype; \
#
# install extensions
2021-10-29 19:56:50 +00:00
docker-php-ext-install curl gd pdo pdo_mysql pdo_pgsql exif; \
#
# set up environment
a2enmod rewrite;
2020-06-07 12:29:05 +00:00
#
# copy files
COPY --chown=33:33 . /var/www/html
2019-12-23 21:03:22 +00:00
VOLUME /var/www/html/data