Add custom container image builds [skip ci]

This commit is contained in:
ajp_anton
2026-06-22 22:28:33 +00:00
commit 4b9a91ba7e
6 changed files with 204 additions and 0 deletions
+14
View File
@@ -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/