13 lines
537 B
Docker
13 lines
537 B
Docker
FROM php:8-apache as apache
|
|
ENV COMPOSER_ALLOW_SUPERUSER=1
|
|
RUN apt-get update -y
|
|
RUN apt-get install git libzip-dev -y
|
|
RUN a2enmod ssl && a2enmod rewrite
|
|
RUN docker-php-ext-install mysqli pdo pdo_mysql zip
|
|
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
|
|
# RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
|
|
WORKDIR /var/www
|
|
RUN rm -rf html/
|
|
RUN composer create-project thetempusproject/thetempusproject html
|
|
RUN chmod -R 777 html/
|
|
RUN chown -R www-data:www-data html/ |