Saving the website

This commit is contained in:
Simon Martens
2025-10-03 11:09:06 +02:00
parent c22b0e6e13
commit 09b8cef2bb
116 changed files with 352537 additions and 5942 deletions

View File

@@ -1,40 +1,10 @@
FROM php:7.4-apache
FROM nginx:alpine
# Install system dependencies for PHP extensions
RUN apt-get update && apt-get install -y \
socat \
libc-client-dev \
libkrb5-dev \
libsodium-dev \
libsqlite3-dev \
libxslt-dev \
libcurl4-openssl-dev \
&& rm -rf /var/lib/apt/lists/*
# Copy static HTML files to nginx web root
COPY src/ /usr/share/nginx/html/
# Configure and install PHP extensions
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl \
&& docker-php-ext-install -j$(nproc) \
mysqli \
pdo_mysql \
sodium \
pdo_sqlite \
xsl \
fileinfo \
imap \
mbstring \
gettext \
curl \
sockets
# Expose port 80
EXPOSE 80
# Enable opcache
RUN docker-php-ext-enable opcache
# Copy your application source code into the container's web root
COPY src/ /var/www/html/
# Copy and set permissions for the entrypoint script
COPY entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/entrypoint.sh
# Set the entrypoint to our new script
ENTRYPOINT ["entrypoint.sh"]
# nginx runs as daemon by default in the container
CMD ["nginx", "-g", "daemon off;"]