Docker构build:xz(stdin):文件格式无法识别

您好总Docker noob在这里,是否有依赖我可以运行,所以这个错误消失?

Step 19/40 : RUN curl -OL https://www.haskell.org/ghc/dist/${ghc%[az]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- && cd ghc-${ghc} && ./configure && make install ---> Running in 0141996d759f % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 161 100 161 0 0 335 0 --:--:-- --:--:-- --:--:-- 336 100 85.5M 100 85.5M 0 0 308k 0 0:04:44 0:04:44 --:--:-- 358k xz: (stdin): File format not recognized tar: Child returned status 1 tar: Error is not recoverable: exiting now The command '/bin/sh -c curl -OL https://www.haskell.org/ghc/dist/${ghc%[az]}/ghc-${ghc}-x86_64-deb7-linux.tar.xz | tar -xJf- && cd ghc-${ghc} && ./configure && make install' returned a non-zero code: 2 

问题是-O选项,以curl写入磁盘而不是标准输出。

尝试使用: curl -L https://...