Working Docker
This commit is contained in:
parent
c26e027c01
commit
f0765e266c
18 changed files with 102 additions and 43 deletions
15
Dockerfile
Normal file
15
Dockerfile
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue