summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorJonas Kohl <git@jonaskohl.de>2024-09-05 20:03:15 +0000
committerJonas Kohl <git@jonaskohl.de>2024-09-05 20:03:28 +0000
commit16243565b687b4fe4c427ba2a481444d738dc4db (patch)
tree56c42a3737be2fce8465c69529b6d6189dbc24bd /Dockerfile
parentbb97285f6ad1ca5105d3e8c960ad4cb0ccb758d3 (diff)
Update image
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile29
1 files changed, 26 insertions, 3 deletions
diff --git a/Dockerfile b/Dockerfile
index c803009..090b5b4 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,3 +1,26 @@
-FROM httpd:2.4
-COPY ./www/ /usr/local/apache2/htdocs/
-COPY ./httpd.conf /usr/local/apache2/conf/httpd.conf
+FROM php:8.3-apache-bookworm AS base
+RUN a2enmod rewrite include
+RUN apt update && apt install -y \
+ curl \
+ git \
+ libzip-dev \
+ unzip \
+ libpng-dev \
+ libwebp-dev \
+ libjpeg62-turbo-dev \
+ libxmp-dev \
+ libfreetype6-dev
+RUN docker-php-ext-configure gd \
+ --with-webp \
+ --with-jpeg \
+ --with-freetype
+RUN docker-php-ext-install gd zip
+RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
+
+FROM base
+COPY ./www/ /var/www/html/
+COPY ./000-default.conf /etc/apache2/sites-available/000-default.conf
+
+WORKDIR /var/www/html
+RUN composer install \
+ --no-interaction