Created
March 15, 2020 05:27
-
-
Save devig/38c8fd31ca568a883059a85e020e45f0 to your computer and use it in GitHub Desktop.
php5.6-apache-ioncube for opencart
This file contains hidden or 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.40-apache | |
| RUN a2enmod rewrite | |
| RUN set -xe \ | |
| && apt-get update \ | |
| && apt-get install -y libxml2-dev libpng-dev libjpeg-dev libc-client-dev libkrb5-dev curl \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr \ | |
| && docker-php-ext-configure imap --with-imap-ssl --with-kerberos \ | |
| && docker-php-ext-install gd mysql pdo pdo_mysql mysqli imap ftp soap | |
| RUN docker-php-ext-enable mysqli | |
| RUN curl -o ioncube.tar.gz http://downloads3.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz \ | |
| && tar -xvvzf ioncube.tar.gz \ | |
| && mv ioncube/ioncube_loader_lin_5.6.so `php-config --extension-dir` \ | |
| && rm -Rf ioncube.tar.gz ioncube \ | |
| && docker-php-ext-enable ioncube_loader_lin_5.6 | |
| RUN mkdir -p /run/php; \ | |
| mkdir -p /root/.cache; | |
| COPY . /var/www/html | |
| WORKDIR /var/www/html |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker build -t sila .
docker run --network=host -v $(pwd):/var/www/html sila