Skip to content

Commit

Permalink
Improved PHP extension installation for production environment
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianLeChat committed Nov 22, 2024
1 parent dc0ac49 commit 02e82d3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/Dockerfile.prod
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
FROM php:fpm-alpine

# Install some PHP extensions
RUN curl -sSLf -o /usr/local/bin/install-php-extensions https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions && \
chmod +x /usr/local/bin/install-php-extensions && \
install-php-extensions opcache
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/

RUN install-php-extensions opcache

# Set the working directory to the website files
WORKDIR /var/www/html
Expand Down

0 comments on commit 02e82d3

Please sign in to comment.