forked from brefphp/extra-php-extensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pgsql layer * Update README * Change the order to alphabetical
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
ARG PHP_VERSION | ||
FROM bref/build-php-$PHP_VERSION AS ext | ||
|
||
WORKDIR ${PHP_BUILD_DIR}/ext/pgsql | ||
RUN phpize | ||
RUN ./configure --with-pgsql=${INSTALL_DIR} | ||
RUN make -j `nproc` && make install | ||
|
||
RUN cp `php-config --extension-dir`/pgsql.so /tmp/pgsql.so | ||
|
||
# Build the final image from the lambci image that is close to the production environment | ||
FROM lambci/lambda:provided | ||
|
||
# Copy things we installed to the final image | ||
COPY --from=ext /tmp/pgsql.so /opt/bref-extra/pgsql.so |