Created
December 2, 2020 22:26
-
-
Save Ammly/6c8cce6490b41887494466f16070d4dd to your computer and use it in GitHub Desktop.
Install Jenkins and php7.4 through Docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM jenkins/jenkins:2.263.1-centos7 | |
USER root | |
RUN yum update -y && yum install epel-release -y | |
RUN rpm -Uvh https://rpms.remirepo.net/enterprise/remi-release-7.rpm | |
RUN yum install yum-utils -y | |
RUN yum-config-manager --enable remi-php74 -y && yum install php -y | |
RUN yum --enablerepo=remi install php-pdo php-mbstring php-xml php-pdo_mysql php-xdebug -y | |
RUN yum update -y | |
RUN cd /tmp | |
RUN curl -sS https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/local/bin/composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment