Files

20 lines
400 B
Docker

FROM php:8.2-apache
RUN apt-get update && apt-get install -y \
zip \
unzip \
git
RUN docker-php-ext-install mysqli
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
COPY . /var/www/html/
WORKDIR /var/www/html
RUN composer install --no-interaction --ignore-platform-reqs
RUN chown -R www-data:www-data /var/www/html/
EXPOSE 80