Merge branch 'Xbird/AddPhpExtDockerfile' into 'main'

Fix dockerfile

See merge request gamexperience/vision!13
This commit is contained in:
Xbird
2022-03-28 17:34:29 +00:00
2 changed files with 14 additions and 2 deletions

View File

@@ -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

View File

@@ -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