This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-apache | |
ENV APP_PATH=/var/www/html | |
WORKDIR $APP_PATH | |
# update, upgrade and install package | |
RUN apt update -y && apt upgrade -y \ | |
&& apt-get install -y build-essential | |
# Php extensions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM php:7.4-apache | |
WORKDIR /app | |
# update & upgrade | |
RUN apt-get update -y && apt-get upgrade -y && apt-get install apt-utils -y | |
# Php extensions | |
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ | |
RUN install-php-extensions intl bcmath gd pdo_mysql opcache uuid exif pcntl zip |