Skip to content

Instantly share code, notes, and snippets.

@Ammly
Created December 2, 2020 22:26
Show Gist options
  • Save Ammly/6c8cce6490b41887494466f16070d4dd to your computer and use it in GitHub Desktop.
Save Ammly/6c8cce6490b41887494466f16070d4dd to your computer and use it in GitHub Desktop.
Install Jenkins and php7.4 through Docker
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