From b03ef56bcb7da9e971c7873a5d4e15e6689bef7d Mon Sep 17 00:00:00 2001 From: Justin Ma Date: Wed, 8 Nov 2023 20:30:34 +0800 Subject: [PATCH] Fix alpine docker file (#10992) # Description Fix docker file. For more detail see: https://github.com/nushell/nushell/issues/8307 --- docker/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index c24cffa198..209b17d419 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -14,17 +14,17 @@ RUN echo '/usr/bin/nu' >> /etc/shells \ && wget -q https://raw.githubusercontent.com/nushell/nushell/main/crates/nu-utils/src/sample_config/default_env.nu -O /home/nushell/.config/nushell/env.nu \ && cd /tmp \ && wget -qO - https://api.github.com/repos/nushell/nushell/releases/latest \ - |grep browser_download_url \ - |grep musl \ - |cut -f4 -d '"' \ - |xargs -I{} wget {} \ + | grep browser_download_url \ + | grep musl.tar.gz \ + | cut -f4 -d '"' \ + | xargs -I{} wget {} \ && tar -xzf nu* \ && cd nu*-musl \ && mv nu* /usr/bin \ && chmod +x /usr/bin/nu \ && chown -R nushell:nushell /home/nushell/.config/nushell \ && ls /usr/bin/nu_plugin* \ - |xargs -I{} su -c 'register {}' nushell \ + | xargs -I{} su -c 'register {}' nushell \ && rm -rf /tmp/* USER nushell