File tree Expand file tree Collapse file tree 1 file changed +61
-13
lines changed
Expand file tree Collapse file tree 1 file changed +61
-13
lines changed Original file line number Diff line number Diff line change 1- FROM amazonlinux:2
1+ FROM amazonlinux:2023
22
33ARG PHP_BUILD_DIR=/var/task
44ARG PHP_CONF_DIR=/etc/php.d
55ARG PHP_EXT_DIR=/usr/lib64/php/modules
6+ ARG PHP_VERSION=8.4.1
67
7- RUN yum install -y amazon-linux-extras
8- RUN amazon-linux-extras enable php8.2
9- RUN amazon-linux-extras install -y php8.2
10- RUN yum clean all && \
11- yum -y upgrade && \
12- yum -y install ilibzip-dev libonig-dev putils gcc make \
13- yum -y re2c \
14- yum-utils
8+ RUN yum install -y \
9+ gcc \
10+ make \
11+ autoconf \
12+ bison \
13+ re2c \
14+ libxml2-devel \
15+ libzip-devel \
16+ oniguruma-devel \
17+ curl-devel \
18+ libpng-devel \
19+ libjpeg-devel \
20+ freetype-devel \
21+ openssl-devel \
22+ sqlite-devel \
23+ bzip2-devel \
24+ libcurl-devel \
25+ libicu-devel \
26+ libxslt-devel \
27+ libffi-devel \
28+ systemd-devel \
29+ git \
30+ tar \
31+ wget \
32+ && yum clean all
1533
16- RUN yum -y install php-cli php-common php-devel && \
17- yum clean all
34+ RUN wget https://www.php.net/distributions/php-${PHP_VERSION}.tar.gz \
35+ && tar -xzf php-${PHP_VERSION}.tar.gz -C /usr/local/src \
36+ && rm php-${PHP_VERSION}.tar.gz
37+
38+ RUN cd /usr/local/src/php-${PHP_VERSION} \
39+ && ./configure \
40+ --prefix=/usr/local/php \
41+ --with-config-file-path=/usr/local/php/etc \
42+ --with-config-file-scan-dir=/usr/local/php/etc/conf.d \
43+ --enable-mbstring \
44+ --with-curl \
45+ --with-openssl \
46+ --with-zlib \
47+ --enable-bcmath \
48+ --enable-mbregex \
49+ --enable-pcntl \
50+ --enable-sockets \
51+ --with-mysqli \
52+ --with-pdo-mysql \
53+ --with-pdo-sqlite \
54+ --with-zip \
55+ --with-gd \
56+ --with-jpeg \
57+ --with-freetype \
58+ --enable-opcache \
59+ --enable-fpm \
60+ && make -j"$(nproc)" \
61+ && make install
62+
63+ RUN ln -s /usr/local/php/bin/php /usr/bin/php \
64+ && ln -s /usr/local/php/bin/phpize /usr/bin/phpize \
65+ && ln -s /usr/local/php/bin/php-config /usr/bin/php-config
1866
1967# Extension install
2068RUN mkdir -p ${PHP_EXT_DIR} && mkdir -p ${PHP_CONF_DIR}
@@ -29,8 +77,8 @@ COPY shadow_cache.c shadow/
2977COPY shadow_cache.h shadow/
3078COPY config.m4 shadow/
3179COPY shadow_diff.php shadow/
32- COPY tests shadow/
33- COPY sugarcrm shadow/
80+ COPY tests/ shadow/tests /
81+ COPY sugarcrm/ shadow/sugarcrm /
3482RUN cd shadow && \
3583 phpize && \
3684 ./configure && \
You can’t perform that action at this time.
0 commit comments