Skip to content
This repository was archived by the owner on Dec 2, 2020. It is now read-only.

Commit 32edc58

Browse files
DevoKunclareliguori
authored andcommitted
Updated PHP version and AmazonLinux version in Dockerfile. Also add chmod+x for the bootstrap script to ensure permissions are correct there.
1 parent 2f9e3ce commit 32edc58

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

example/Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@
66
####### Install and compile everything #######
77

88
# 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
1010

1111
# Set desired PHP Version
12-
ARG php_version="7.3.3"
12+
ARG php_version="7.3.6"
1313

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 && \
1616
yum clean all && \
1717
yum install -y autoconf \
1818
bison \
@@ -34,6 +34,7 @@ RUN curl -sL https://github.com/php/php-src/archive/php-${php_version}.tar.gz |
3434
cd php-src-php-${php_version} && \
3535
./buildconf --force && \
3636
./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 && \
3738
make install && \
3839
/opt/php-7-bin/bin/php -v && \
3940
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 && \
4344
cp /opt/php-7-bin/bin/php /lambda-php-runtime/bin/php
4445

4546
COPY runtime/bootstrap /lambda-php-runtime/
47+
RUN chmod 0555 /lambda-php-runtime/bootstrap
4648

4749
# Install Guzzle, prepare vendor files
4850
RUN mkdir /lambda-php-vendor && \

0 commit comments

Comments
 (0)