Working Docker

This commit is contained in:
Pablo Ferreiro 2022-03-15 22:52:54 +01:00
parent c26e027c01
commit f0765e266c
No known key found for this signature in database
GPG key ID: 41FBCE65B779FA24
18 changed files with 102 additions and 43 deletions

15
Dockerfile Normal file
View file

@ -0,0 +1,15 @@
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