Fix dockerfile
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user