xssbook2/build/php/Dockerfile

18 lines
392 B
Text
Raw Permalink Normal View History

FROM php:fpm-alpine
2024-05-23 16:15:02 +00:00
# install packages
RUN apk add --no-cache postgresql-dev runuser shadow
RUN rm -fr /var/cache/apk/*
# update php user
RUN groupmod --gid 1000 www-data
RUN usermod --uid 1000 www-data
# install php packages
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql
RUN docker-php-ext-install pdo pdo_pgsql
2024-05-23 16:15:02 +00:00
# remove build packages
RUN apk del shadow
USER www-data