proxitok/Dockerfile

16 lines
433 B
Docker
Raw Normal View History

2022-03-15 17:52:54 -04:00
FROM php:8.0-apache
WORKDIR /var/www/html
COPY --from=composer /usr/bin/composer /usr/bin/composer
RUN apt update -y && apt install -y libzip-dev \
&& pecl install redis zip \
&& docker-php-ext-enable redis zip \
&& a2enmod rewrite headers
RUN ["mkdir", "/cache"]
RUN ["chown", "-R", "www-data:www-data", "/cache"]
COPY . .
RUN composer update \
&& composer install --no-interaction --optimize-autoloader --no-dev