From 8f230375892b6c3a57be929c1d4de4659fd1e6d4 Mon Sep 17 00:00:00 2001 From: Xbird Date: Mon, 28 Mar 2022 17:34:28 +0000 Subject: [PATCH] Fix dockerfile --- .gitlab-ci.yml | 12 ++++++++++++ Dockerfile | 4 ++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 927d8a2..cfe4003 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -18,24 +18,36 @@ stages: security-checker: stage: SecurityChecker + except: + - main + - dev script: - local-php-security-checker --path=./composer.lock allow_failure: false phpcs: stage: CodingStandards + except: + - main + - dev script: - phpcs --version && phpcs --standard=PSR12 --ignore=./src/Kernel.php ./src allow_failure: false phpstan: stage: CodingStandards + except: + - main + - dev script: - phpstan --version && phpstan analyse ./src allow_failure: false twig-lint: stage: CodingStandards + except: + - main + - dev script: - twig-lint --version && twig-lint lint ./templates allow_failure: false diff --git a/Dockerfile b/Dockerfile index 60397ec..ac4ed56 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,10 +5,10 @@ COPY . . ENV DATABASE_URL=localhost # Apk install -RUN apt update -y && apt install -y zip wget libbz2-dev +RUN apt update -y && apt install -y zip wget libbz2-dev libcurl libcurl4-openssl-dev zlib1g-dev libpng-dev libicu-dev libonig-dev libxslt-dev # Install pdo -RUN docker-php-ext-install pdo_mysql bz2 curl fileinfo gd intl mbstring mysqli openssl xsl +RUN docker-php-ext-install pdo_mysql bz2 curl fileinfo gd intl mbstring mysqli xsl # Install composer RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && php composer-setup.php && php -r "unlink('composer-setup.php');" && mv composer.phar /usr/local/bin/composer