From eccc149f45fb03dda85c313a79889d294712ab02 Mon Sep 17 00:00:00 2001 From: Abdelrahman Omran Date: Sat, 30 Jun 2018 10:50:37 +0200 Subject: [PATCH] Fix current shell on root when installing svgo (#1644) This fix the following errors: /bin/sh: 13: /root/.bashrc: shopt: not found /bin/sh: 21: /root/.bashrc: shopt: not found /bin/sh: 103: /root/.bashrc: source: not found --- workspace/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/Dockerfile b/workspace/Dockerfile index 5c7876d8..4f5ac38e 100644 --- a/workspace/Dockerfile +++ b/workspace/Dockerfile @@ -677,7 +677,7 @@ ARG INSTALL_IMAGE_OPTIMIZERS=false RUN if [ ${INSTALL_IMAGE_OPTIMIZERS} = true ]; then \ apt-get install -y jpegoptim optipng pngquant gifsicle && \ if [ ${INSTALL_NODE} = true ]; then \ - . ~/.bashrc && npm install -g svgo \ + exec bash && . ~/.bashrc && npm install -g svgo \ ;fi\ ;fi