umgestellt auf Docker

This commit is contained in:
rxf
2025-09-20 16:01:52 +02:00
commit efe6ff4864
39 changed files with 2075 additions and 0 deletions

33
Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM php:8.1-apache
# Install system dependencies
RUN apt-get update && apt-get install -y \
libzip-dev \
zip \
unzip \
&& rm -rf /var/lib/apt/lists/*
# Install PHP extensions
RUN docker-php-ext-install mysqli pdo pdo_mysql zip
# Enable Apache mod_rewrite
RUN a2enmod rewrite
# Set working directory
WORKDIR /var/www/html
# Copy application files
COPY . /var/www/html/
# Set permissions
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html
# Create uploads directory if not exists
RUN mkdir -p uploads && chown -R www-data:www-data uploads
# Expose port 80
EXPOSE 80
# Start Apache
CMD ["apache2-foreground"]