From 68d331a8168d9c093a3cd217e17d0508a498e626 Mon Sep 17 00:00:00 2001 From: Peter Dave Hello Date: Mon, 21 Sep 2020 02:47:57 +0800 Subject: [PATCH] [dockerfile] Remove ShellCheck Segmentation fault workaround The workaround came from this GitHub issue comment: https://github.com/koalaman/shellcheck/issues/1053#issuecomment-357816927 Looks like the problem doesn't exist any more: ``` . . . Step 14/33 : RUN shellcheck -V ---> Running in 4b7a718c1cbf ShellCheck - shell script analysis tool version: 0.7.0 license: GNU General Public License, version 3 website: https://www.shellcheck.net . . . ``` The workaround should be removed so that the Dockerfile will be easier to be understand and read. --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07d3514..fd16c46 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,10 +69,8 @@ RUN apt update && \ RUN wget https://storage.googleapis.com/shellcheck/shellcheck-v$SHELLCHECK_VERSION.linux.x86_64.tar.xz -O- | \ tar xJvf - shellcheck-v$SHELLCHECK_VERSION/shellcheck && \ mv shellcheck-v$SHELLCHECK_VERSION/shellcheck /bin && \ - rmdir shellcheck-v$SHELLCHECK_VERSION && \ - touch /tmp/libc.so.6 && \ - echo "alias shellcheck='LD_LIBRARY_PATH=/tmp /bin/shellcheck'" >> /etc/bash.bashrc -RUN LD_LIBRARY_PATH=/tmp shellcheck -V + rmdir shellcheck-v$SHELLCHECK_VERSION +RUN shellcheck -V # Set locale RUN locale-gen en_US.UTF-8