Created
November 12, 2020 20:15
-
-
Save jazeabby/db9991e8a95e68096275018f67a92e8a to your computer and use it in GitHub Desktop.
DockerFile for laravel application
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-cli | |
# Update packages | |
RUN apt-get update | |
# Install PHP and composer dependencies | |
RUN apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev libzip-dev | |
# Clear out the local repository of retrieved package files | |
RUN apt-get clean | |
# Install needed extensions | |
# Here you can install any other extension that you need during the test and deployment process | |
RUN docker-php-ext-install pdo_mysql | |
RUN pecl install mcrypt-1.0.3 | |
RUN docker-php-ext-enable mcrypt | |
RUN pecl install zip | |
RUN docker-php-ext-enable zip | |
# Install Composer | |
RUN curl --silent --show-error https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment