This repository was archived by the owner on Dec 2, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 6
6
# ###### Install and compile everything #######
7
7
8
8
# Same AL version as Lambda execution environment AMI
9
- FROM amazonlinux:2017 .03.1.20170812 as builder
9
+ FROM amazonlinux:2018 .03.0.20190514 as builder
10
10
11
11
# Set desired PHP Version
12
- ARG php_version="7.3.3 "
12
+ ARG php_version="7.3.6 "
13
13
14
- # Lock to 2017 .03 release (same as Lambda) and install compilation dependencies
15
- RUN sed -i 's;^releasever.*;releasever=2017 .03;;' /etc/yum.conf && \
14
+ # Lock to 2018 .03 release (same as Lambda) and install compilation dependencies
15
+ RUN sed -i 's;^releasever.*;releasever=2018 .03;;' /etc/yum.conf && \
16
16
yum clean all && \
17
17
yum install -y autoconf \
18
18
bison \
@@ -34,6 +34,7 @@ RUN curl -sL https://github.com/php/php-src/archive/php-${php_version}.tar.gz |
34
34
cd php-src-php-${php_version} && \
35
35
./buildconf --force && \
36
36
./configure --prefix=/opt/php-7-bin/ --with-openssl --with-curl --with-zlib --without-pear --enable-bcmath --with-bz2 --enable-mbstring --with-mysqli && \
37
+ make -j 5 && \
37
38
make install && \
38
39
/opt/php-7-bin/bin/php -v && \
39
40
curl -sS https://getcomposer.org/installer | /opt/php-7-bin/bin/php -- --install-dir=/opt/php-7-bin/bin/ --filename=composer
@@ -43,6 +44,7 @@ RUN mkdir -p /lambda-php-runtime/bin && \
43
44
cp /opt/php-7-bin/bin/php /lambda-php-runtime/bin/php
44
45
45
46
COPY runtime/bootstrap /lambda-php-runtime/
47
+ RUN chmod 0555 /lambda-php-runtime/bootstrap
46
48
47
49
# Install Guzzle, prepare vendor files
48
50
RUN mkdir /lambda-php-vendor && \
You can’t perform that action at this time.
0 commit comments