From 9db80a9ee8c6866ea287e8f4918d96dfb69f5761 Mon Sep 17 00:00:00 2001 From: David Windell Date: Fri, 6 Jul 2018 11:17:15 +0100 Subject: [PATCH] Magento 2.2.5 --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 6a6e17b..1ff4acb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM outeredge/edge-docker-php:7.1.17-alpine -ENV MAGENTO_VERSION=2.2.4 \ +ENV MAGENTO_VERSION=2.2.5 \ MAGE_MODE=default \ ADDITIONAL_STORES= @@ -9,6 +9,7 @@ CMD ["/run.sh"] COPY . / RUN wget https://github.com/outeredge/edge-docker-magento/releases/download/v${MAGENTO_VERSION}/Magento-CE-${MAGENTO_VERSION}.tar.bz2 -O - | tar -jxf - -C /var/www --exclude='composer.lock' --exclude='*.md' && \ + sed -i '/$relativePath = $request->getPathInfo();/a $relativePath = ltrim(ltrim($relativePath, "media"), "/");' /var/www/pub/get.php && \ chmod +x /var/www/bin/magento && \ cp /var/www/nginx.conf.sample /etc/nginx/magento_default.conf && \ chown -R edge:edge /var/www