diff --git a/Dockerfile b/Dockerfile index 146b26b1..09fff96c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,18 @@ -FROM php:8.1-apache-bullseye +FROM php:8.3-apache-bullseye LABEL org.opencontainers.image.title="LWT Community" LABEL org.opencontainers.image.description="An image for LWT" LABEL org.opencontainers.image.documentation="https://hugofara.github.io/lwt/docs/" LABEL org.opencontainers.image.url="https://hugofara.github.io/lwt/" -LABEL org.opencontainers.image.author="HugoFara " +LABEL org.opencontainers.image.author="HugoFara " LABEL org.opencontainers.image.license=Unlicense LABEL org.opencontainers.image.source="https://github.com/HugoFara/lwt" # creating config file php.ini RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \ - echo 'mysqli.allow_local_infile = On' >> "$PHP_INI_DIR/php.ini" - -RUN docker-php-ext-install pdo pdo_mysql mysqli + echo 'mysqli.allow_local_infile = On' >> "$PHP_INI_DIR/php.ini"; \ + docker-php-ext-install pdo pdo_mysql mysqli COPY . /var/www/html/lwt @@ -23,5 +22,9 @@ ARG DB_USER=root ARG DB_PASSWORD=root ARG DB_DATABASE=learning-with-texts -RUN printf '' "$DB_HOSTNAME" "$DB_USER" "$DB_PASSWORD" "$DB_DATABASE" > /var/www/html/lwt/connect.inc.php - +RUN printf '' \ + "$DB_HOSTNAME" \ + "$DB_USER" \ + "$DB_PASSWORD" \ + "$DB_DATABASE" \ + > /var/www/html/lwt/connect.inc.php