Last active
September 18, 2024 06:14
-
-
Save guibranco/9342f83c5e51b7ec85d9046c652d1074 to your computer and use it in GitHub Desktop.
Docker file for PHP 5.6 with Apache, MySQL extension, GD2 and Apache mod_rewrite enabled
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:5.6-apache | |
RUN sed -i -e 's/deb.debian.org/archive.debian.org/g' \ | |
-e 's|security.debian.org|archive.debian.org/|g' \ | |
-e '/stretch-updates/d' /etc/apt/sources.list | |
RUN apt-get update | |
RUN apt-get install --yes --force-yes cron g++ gettext libicu-dev openssl libc-client-dev libkrb5-dev libxml2-dev libfreetype6-dev libgd-dev libmcrypt-dev bzip2 libbz2-dev libtidy-dev libcurl4-openssl-dev libz-dev libmemcached-dev libxslt-dev | |
RUN a2enmod rewrite | |
RUN docker-php-ext-install mysql | |
RUN docker-php-ext-enable mysql | |
RUN docker-php-ext-configure gd --with-freetype-dir=/usr --with-jpeg-dir=/usr --with-png-dir=/usr | |
RUN docker-php-ext-install gd | |
COPY ./ /var/www/html/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For me it fails when running apt-get update