-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile_73
69 lines (67 loc) · 1.98 KB
/
Dockerfile_73
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# docker-gitlab-ci-runner-php (PHP 7.3)
FROM centos:7
LABEL Leo "leo.on.the.earth@gmail.com"
# Install epel repo & remi repo & PHP 7.3 & composer
RUN mkdir /root/.composer && \
mkdir /root/.ssh && \
mkdir /cache && \
cd /tmp && \
curl -O https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm && \
curl -O https://rpms.remirepo.net/enterprise/remi-release-7.rpm && \
rpm -Uvh remi-release-7*.rpm epel-release-latest-7*.rpm && \
yum -y update && \
yum install -y \
which \
git \
unzip gzip tar bzip2 \
rsync && \
yum clean all
RUN yum --enablerepo=remi,remi-php73 install -y \
php \
php-bcmath \
php-cli \
php-common \
php-dba \
php-devel \
php-embedded \
php-enchant \
php-fpm \
php-gd \
php-gmp \
php-imap \
php-intl \
php-ldap \
php-litespeed \
php-mbstring \
php-mcrypt \
php-mssql \
php-mysqlnd \
php-odbc \
php-opcache \
php-pdo \
php-pear \
php-pgsql \
php-process \
php-pspell \
php-snmp \
php-soap \
php-tidy \
php-xml \
php-xmlrpc \
php-pecl-imagick \
php-pecl-memcache \
php-pecl-memcached \
php-pecl-redis \
php-pecl-xdebug \
php-pecl-zip \
php-interbase \
php-recode && \
yum clean all && \
echo 'date.timezone="UTC"' > /etc/php.d/docker-gitlab-ci-runner-php.ini && \
echo 'phar.readonly=off' >> /etc/php.d/docker-gitlab-ci-runner-php.ini && \
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" && \
php -r "if (hash_file('sha384', 'composer-setup.php') === '906a84df04cea2aa72f40b5f787e49f22d4c2f19492ac310e8cba5b96ac8b64115ac402c8cd292b8a03482574915d1a8') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" && \
php composer-setup.php && \
php -r "unlink('composer-setup.php');" && \
mv composer.phar /usr/local/bin/composer
VOLUME ["/cache", "/root/.composer", "/root/.ssh"]