Add custom container image builds [skip ci]
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
ARG PHP_VERSION=8
|
||||
FROM php:${PHP_VERSION}-fpm-alpine AS build
|
||||
|
||||
RUN set -eux; \
|
||||
apk add --no-cache postgresql-dev; \
|
||||
docker-php-ext-install pdo_pgsql
|
||||
|
||||
FROM php:${PHP_VERSION}-fpm-alpine
|
||||
|
||||
RUN set -eux; \
|
||||
apk add --no-cache libpq
|
||||
|
||||
COPY --from=build /usr/local/lib/php/extensions/ /usr/local/lib/php/extensions/
|
||||
COPY --from=build /usr/local/etc/php/conf.d/ /usr/local/etc/php/conf.d/
|
||||
Reference in New Issue
Block a user