Updated the proostekrant to work properly again.

This commit is contained in:
douwe
2026-10-09 10:33:21 +02:00
parent 56d143b74b
commit 256a81a770
133 changed files with 10491 additions and 837 deletions
+17
View File
@@ -0,0 +1,17 @@
FROM texlive/texlive:latest
RUN apt-get update && apt-get install -y \
curl \
wget \
ghostscript \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /var/www
# LaTeX is already installed in the texlive image
# No need to install additional packages
EXPOSE 80
CMD ["/bin/bash"]
+9
View File
@@ -0,0 +1,9 @@
FROM nginx:alpine
RUN apk add --no-cache curl
COPY docker/nginx/nginx.conf /etc/nginx/conf.d/default.conf
EXPOSE 80
CMD ["nginx", "-g", "daemon off;"]
+18
View File
@@ -0,0 +1,18 @@
server {
listen 80;
server_name localhost;
root /var/www/html/public;
index index.php;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
+42
View File
@@ -0,0 +1,42 @@
FROM php:8.2-fpm-alpine
# Install dependencies for GD extension
RUN apk add --no-cache --virtual .build-deps \
freetype-dev \
libjpeg-turbo-dev \
libpng-dev \
libwebp-dev \
zlib-dev
# Install and enable GD extension with all image format support
# Note: --with-png and --with-jpeg are now built-in, only need freetype and webp
RUN docker-php-ext-configure gd \
--with-freetype \
--with-webp
# Install PHP extensions
RUN docker-php-ext-install -j$(nproc) \
gd \
mysqli \
pdo \
pdo_mysql
# Clean up build dependencies
RUN apk del .build-deps
# Also install runtime libraries for GD
RUN apk add --no-cache \
freetype \
libjpeg-turbo \
libpng \
libwebp \
zlib
# Copy PHP configuration
COPY docker/php/php.ini /usr/local/etc/php/conf.d/custom.ini
WORKDIR /var/www/html
EXPOSE 9000
CMD ["php-fpm"]
+7
View File
@@ -0,0 +1,7 @@
upload_max_filesize = 50M
post_max_size = 52M
memory_limit = 512M
max_execution_time = 300
display_errors = On
error_reporting = E_ALL
date.timezone = Europe/Brussels