-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support arm64 and amd64 builds of nushell
- Loading branch information
Showing
3 changed files
with
73 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,18 @@ | ||
FROM ubuntu:20.04 as cached | ||
FROM ubuntu:22.04 as cached | ||
|
||
RUN apt-get update && apt-get install -y wget | ||
|
||
FROM cached as build | ||
|
||
ARG URL=https://github.com/nushell/nushell/releases/download/0.98.0/nu-0.98.0-x86_64-unknown-linux-gnu.tar.gz | ||
ARG VERSION=0.99.1 | ||
ARG DOWNLOAD_ARCH=x86_64 | ||
ARG URL=https://github.com/nushell/nushell/releases/download/${VERSION}/nu-${VERSION}-${DOWNLOAD_ARCH}-unknown-linux-musl.tar.gz | ||
|
||
RUN wget -O /tmp/archive.tar.gz "$URL" && \ | ||
RUN wget -q -O /tmp/archive.tar.gz "$URL" && \ | ||
mkdir /tmp/extract/ && \ | ||
tar -xzf /tmp/archive.tar.gz -C /tmp/extract/ && \ | ||
mv /tmp/extract/nu* /nu/ | ||
|
||
FROM scratch | ||
|
||
COPY --from=build /nu/ /nu/ | ||
COPY --from=build /nu/ /nu/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters