summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorJustin Ma <hustcer@outlook.com>2022-06-21 18:28:31 +0800
committerGitHub <noreply@github.com>2022-06-21 18:28:31 +0800
commit848ff8453b2d3b5a3248d64b5049801e1a728920 (patch)
treeb8a4c1ad2118e25ddb9c81b4816f911f1aaa08c2 /docker
parentf94ca6cfde13d0d0df6c65ff1a1267b4cf32bd2a (diff)
feat: Update dockerfile for latest nu release (#5843)
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile12
1 files changed, 6 insertions, 6 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index e99dbe41e..5b7a7fae4 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,8 +1,8 @@
# Git: git version 2.30.2
# /etc/os-release: Debian: Debian GNU/Linux 11 (bullseye)
# Kernel: Linux ec73d87a5aab 5.10.104-linuxkit #1 SMP Wed Mar 9 19:05:23 UTC 2022 x86_64 GNU/Linux
-# Build cmd: docker build --no-cache . -t nushell-0.61
-# Other tags: nushell/debian-nu.0.61, nushell
+# Build cmd: docker build --no-cache . -t nushell-latest
+# Other tags: nushell/debian-nu:latest, nushell
FROM debian:bullseye-slim
LABEL maintainer=nushell
@@ -14,15 +14,15 @@ RUN apt update \
# Make /bin/sh symlink to bash instead of dash:
&& echo "dash dash/sh boolean false" | debconf-set-selections \
&& DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash \
- && cd /lib; curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep linux | aria2c -i - \
- && tar xvf nu_0*.tar.gz \
- && cd nu_0* && cp -aR nushell*/** /usr/local/bin/ \
+ && cd /lib; curl -s https://api.github.com/repos/nushell/nushell/releases/latest | grep browser_download_url | cut -d '"' -f 4 | grep x86_64-unknown-linux-gnu | aria2c -i - \
+ && mkdir nu-latest && tar xvf nu-*.tar.gz --directory=nu-latest \
+ && cp -aR nu-latest/* /usr/local/bin/ \
# Setup default config file for nushell
&& mkdir -p /root/.config/nushell && cd /root/.config/nushell \
&& aria2c https://raw.githubusercontent.com/nushell/nushell/main/docs/sample_config/default_env.nu -o env.nu \
&& aria2c https://raw.githubusercontent.com/nushell/nushell/main/docs/sample_config/default_config.nu -o config.nu \
# Do some cleanup work
- && cd /lib; rm -rf nu_0* nu-latest.tar.gz \
+ && cd /lib; rm -rf nu-* \
&& rm -rf /var/lib/apt/lists/* && apt autoremove -y \
&& echo '/usr/local/bin/nu' >> /etc/shells \
# Add an nushell user and create home dir