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
# taken from https://github.com/sebastian13/docker-wordpress-ioncube/blob/master/7.1-apache/Dockerfile | |
# with small modification so you don't need to pass version as argument so now ioncube install the correct | |
# version by only changing the php version | |
FROM dockerhub.ir/wordpress:5.6-php7.3-fpm | |
ADD https://downloads.ioncube.com/loader_downloads/ioncube_loaders_lin_x86-64.tar.gz /tmp/ | |
RUN PHP_VER=$(php -v | head -n 1 | awk '{print $2}' | awk -F '.' '{print $1"."$2}') && \ | |
tar xvzfC /tmp/ioncube_loaders_lin_x86-64.tar.gz /tmp/ && \ | |
php_ext_dir="$(php -i | grep extension_dir | head -n1 | awk '{print $3}')" && \ |
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
## this bit is from https://docs.docker.com/engine/install/ubuntu/ | |
# first make sure you don't have it installed | |
echo "removing previously installed docker instances" | |
sudo apt-get remove docker docker-engine docker.io containerd runc | |
echo "installing certificated and repository" | |
sudo apt-get update | |
sudo apt-get install apt-transport-https ca-certificates curl gnupg lsb-release -y |