diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..01712ee --- /dev/null +++ b/Dockerfile @@ -0,0 +1,2 @@ +FROM php:7.4-cli-alpine +RUN docker-php-ext-install ffi \ No newline at end of file diff --git a/Jenkinsfile b/Jenkinsfile index f99f3bd..11ecb58 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,15 +1,8 @@ pipeline { - agent none + agent { dockerfile true } stages { stage('PHP 7.4') { - agent { - docker { - image 'php:7.4-cli-alpine' - args '-u root --privileged' - } - } steps { - sh 'docker-php-ext-install ffi' sh 'apk add --no-cache php7-phpdbg' sh 'curl -sS https://getcomposer.org/installer | php' sh 'php composer.phar install'