upstream from PussTheCat-org/docker-proxitok-quay
This commit is contained in:
parent
eb69e8a22e
commit
e4e6f05362
3 changed files with 17 additions and 10 deletions
25
Dockerfile
25
Dockerfile
|
|
@ -1,15 +1,24 @@
|
|||
FROM php:8.0-apache
|
||||
FROM php:8-apache
|
||||
WORKDIR /var/www/html
|
||||
|
||||
COPY --from=composer /usr/bin/composer /usr/bin/composer
|
||||
RUN apt update -y && apt install -y libzip-dev \
|
||||
RUN apt update -y && apt upgrade -y \
|
||||
&& apt install -y --no-install-recommends 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"]
|
||||
&& a2enmod rewrite headers \
|
||||
&& mkdir /cache \
|
||||
&& chown -R www-data:www-data /cache \
|
||||
&& rm -rf /var/www/html/*
|
||||
|
||||
# Copy project to /var/www/html
|
||||
COPY . .
|
||||
|
||||
# Run composer and clean
|
||||
RUN composer update \
|
||||
&& composer install --no-interaction --optimize-autoloader --no-dev
|
||||
&& composer install --no-interaction --optimize-autoloader --no-dev \
|
||||
&& apt autoclean -y \
|
||||
&& apt autoremove -y \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& rm -rf /usr/bin/composer
|
||||
|
||||
EXPOSE 80
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue