Skip to content

Commit

Permalink
fix(Dockerfile): move ARG PHP_EXTENSIONS into the right stage
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmirloup committed Mar 8, 2024
1 parent aeff473 commit 4835cdf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
ARG PHP_VERSION
ARG PHP_EXTENSIONS

FROM mlocati/php-extension-installer:2 as extension-installer
FROM php:${PHP_VERSION}-fpm as base
FROM base
ARG PHP_EXTENSIONS

WORKDIR /usr/local/etc/php
COPY --link symfony.ini ./conf.d/
COPY --link symfony.pool.conf ./pool.d/

COPY --from=extension-installer /usr/bin/install-php-extensions /usr/local/bin

RUN install-php-extensions "${PHP_EXTENSIONS}"
RUN install-php-extensions ${PHP_EXTENSIONS}

RUN usermod -u 1000 www-data && usermod -G staff www-data

Expand Down

0 comments on commit 4835cdf

Please sign in to comment.