Initial version upload

This commit is contained in:
Michael Staake
2025-11-03 11:04:46 -08:00
parent 8a3c48b98a
commit 0083f20e8c
26 changed files with 2281 additions and 0 deletions

31
Dockerfile Normal file
View File

@@ -0,0 +1,31 @@
FROM php:8.4-apache
# Enable Apache mod_rewrite
RUN a2enmod rewrite
# Install SQLite extensions
RUN apt-get update && apt-get install -y \
sqlite3 \
libsqlite3-dev \
&& docker-php-ext-install pdo_sqlite \
&& rm -rf /var/lib/apt/lists/*
# Set the working directory
WORKDIR /var/www/html
# Copy application files
COPY . /var/www/html/
# Create data directory and set permissions
RUN mkdir -p /var/www/html/data && \
chown -R www-data:www-data /var/www/html/data && \
chmod -R 755 /var/www/html/data
# Configure Apache to allow .htaccess
RUN sed -i '/<Directory \/var\/www\/>/,/<\/Directory>/ s/AllowOverride None/AllowOverride All/' /etc/apache2/apache2.conf
# Expose port 80
EXPOSE 80
# Start Apache
CMD ["apache2-foreground"]