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
This commit is contained in:
Abdelrahman Omran 2018-06-30 10:50:37 +02:00 committed by Shao Yu-Lung (Allen)
parent 9cb7624da7
commit eccc149f45
1 changed files with 1 additions and 1 deletions

View File

@ -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