Fix dockerfile
This commit is contained in:
@@ -18,24 +18,36 @@ stages:
|
|||||||
|
|
||||||
security-checker:
|
security-checker:
|
||||||
stage: SecurityChecker
|
stage: SecurityChecker
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
script:
|
script:
|
||||||
- local-php-security-checker --path=./composer.lock
|
- local-php-security-checker --path=./composer.lock
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
phpcs:
|
phpcs:
|
||||||
stage: CodingStandards
|
stage: CodingStandards
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
script:
|
script:
|
||||||
- phpcs --version && phpcs --standard=PSR12 --ignore=./src/Kernel.php ./src
|
- phpcs --version && phpcs --standard=PSR12 --ignore=./src/Kernel.php ./src
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
phpstan:
|
phpstan:
|
||||||
stage: CodingStandards
|
stage: CodingStandards
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
script:
|
script:
|
||||||
- phpstan --version && phpstan analyse ./src
|
- phpstan --version && phpstan analyse ./src
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|
||||||
twig-lint:
|
twig-lint:
|
||||||
stage: CodingStandards
|
stage: CodingStandards
|
||||||
|
except:
|
||||||
|
- main
|
||||||
|
- dev
|
||||||
script:
|
script:
|
||||||
- twig-lint --version && twig-lint lint ./templates
|
- twig-lint --version && twig-lint lint ./templates
|
||||||
allow_failure: false
|
allow_failure: false
|
||||||
|
|||||||
@@ -5,10 +5,10 @@ COPY . .
|
|||||||
ENV DATABASE_URL=localhost
|
ENV DATABASE_URL=localhost
|
||||||
|
|
||||||
# Apk install
|
# 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
|
# 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
|
# 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
|
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