php-composer-symfony/Dockerfile
2024-06-03 19:29:22 -04:00

41 lines
999 B
Docker

FROM php:8.3-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 \
zip \
mbstring \
exif \
pcntl \
bcmath \
xml \
mysqli \
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/