Improving Dockerfile syntax

This commit is contained in:
Luca 2023-07-04 15:35:46 +02:00 committed by GitHub
parent e65c5146d4
commit 8b83c84f7a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7,14 +7,13 @@ RUN touch /usr/local/etc/php/conf.d/uploads.ini \
&& echo "max_execution_time = 60" >> /usr/local/etc/php/conf.d/uploads.ini
RUN apt-get update \
&& apt-get install -y git curl libxml2-dev libonig-dev
RUN docker-php-ext-install mysqli
RUN docker-php-ext-install mysqli mbstring xml
#RUN docker-php-ext-install curl
RUN docker-php-ext-install mbstring
RUN docker-php-ext-install xml
#RUN docker-php-ext-install openssl
WORKDIR /var/www/html
RUN rm -rf /var/www/html/docker/
COPY ./ /var/www/html/
RUN ls && rm -rf /var/www/html/docker/ \
WORKDIR /var/www/html
RUN cd /var/www/html && ls \
&& chown -R root:www-data ./application/config/ \
&& chown -R root:www-data ./application/logs/ \
&& chown -R root:www-data ./assets/qslcard/ \