feature: Docker initial start

This commit is contained in:
Keith Solomon
2025-02-09 17:39:17 -06:00
parent 0f8b3ed157
commit 5a837c19e1
4 changed files with 65 additions and 1056 deletions

27
dockerfile Normal file
View File

@@ -0,0 +1,27 @@
# Use an official PHP image with Apache
FROM php:8.3-apache
# Install necessary extensions
RUN apt-get update && apt-get install -y \
libsqlite3-dev \
unzip \
&& docker-php-ext-install pdo pdo_sqlite
# Enable mod_rewrite for Apache (required for Laravel/other frameworks)
RUN a2enmod rewrite
# Set the working directory
WORKDIR /var/www/html
# Copy application files to the container
COPY . /var/www/html
# Set proper permissions for the application
RUN chown -R www-data:www-data /var/www/html \
&& chmod -R 755 /var/www/html
# Expose port 80
EXPOSE 80
# Start Apache in foreground mode
CMD ["apache2-foreground"]