commit 3db0e357c6167d6a066118cf01206b503b546d18 Author: Ryan Prather Date: Mon Jun 3 19:07:32 2024 -0400 first commit diff --git a/000-default.conf b/000-default.conf new file mode 100644 index 0000000..82e75d3 --- /dev/null +++ b/000-default.conf @@ -0,0 +1,29 @@ + + # The ServerName directive sets the request scheme, hostname and port that + # the server uses to identify itself. This is used when creating + # redirection URLs. In the context of virtual hosts, the ServerName + # specifies what hostname must appear in the request's Host: header to + # match this virtual host. For the default virtual host (this file) this + # value is not decisive as it is used as a last resort host regardless. + # However, you must set it for any further virtual host explicitly. + #ServerName www.example.com + + ServerAdmin webmaster@localhost + DocumentRoot /var/www/html/public + + # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, + # error, crit, alert, emerg. + # It is also possible to configure the loglevel for particular + # modules, e.g. + #LogLevel info ssl:warn + + ErrorLog ${APACHE_LOG_DIR}/error.log + CustomLog ${APACHE_LOG_DIR}/access.log combined + + # For most configuration files from conf-available/, which are + # enabled or disabled at a global level, it is possible to + # include a line for only one particular virtual host. For example the + # following line enables the CGI configuration for this host only + # after it has been globally disabled with "a2disconf". + #Include conf-available/serve-cgi-bin.conf + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..41ddf5f --- /dev/null +++ b/Dockerfile @@ -0,0 +1,40 @@ +FROM php:8.2-apache + +RUN apt-get update && \ + apt-get install -y \ + libzip-dev \ + unzip \ + libonig-dev \ + libxml2-dev \ + libpng-dev \ + libjpeg-dev \ + libicu-dev \ + sqlite3 \ + curl \ + git \ + nano + +RUN docker-php-ext-configure gd --with-jpeg && \ + docker-php-ext-configure zip && \ + docker-php-ext-install \ + pdo_sqlite \ + zip \ + mbstring \ + exif \ + pcntl \ + bcmath \ + xml \ + intl + +RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \ + php composer-setup.php --install-dir=/usr/local/bin --filename=composer && \ + php -r "unlink('composer-setup.php');" + +RUN curl -sS https://get.symfony.com/cli/installer | bash && \ + mv /root/.symfony5/bin/symfony /usr/local/bin/symfony + +RUN git config --global --add safe.directory /var/www/html && \ + git config --global user.name "Ryan Prather" && \ + git config --global user.email "ryan@rkprather.com" + +COPY 000-default.conf /etc/apache2/sites-available/