mirror of
https://github.com/casjaysdevdocker/deno
synced 2025-01-18 06:34:25 -05:00
🗃️ modified: Dockerfile 🗃️
This commit is contained in:
parent
db1183b1f9
commit
e0aae404ae
@ -9,12 +9,13 @@ RUN apk --no-cache add --update \
|
||||
mkdir -p /tmp/deno
|
||||
|
||||
RUN { [ "$(uname -m)" = "amd64" ] || [ "$(uname -m)" = "x86_64" ]; } && \
|
||||
curl -Lsf "https://github.com/denoland/deno/releases/download/${VERSION}/deno-x86_64-unknown-linux-gnu.zip" -o /tmp/deno.zip
|
||||
curl -Lsf "https://github.com/denoland/deno/releases/download/${VERSION}/deno-x86_64-unknown-linux-gnu.zip" -o /tmp/deno.zip || true
|
||||
|
||||
RUN { [ "$(uname -m)" = "arm64" ] || [ "$(uname -m)" = "aarch64" ]; } && \
|
||||
curl -Lsf https://github.com/LukeChannings/deno-arm64/releases/download/${VERSION}/deno-$(echo $TARGETPLATFORM | tr '/' '-').zip -o /tmp/deno.zip
|
||||
curl -Lsf https://github.com/LukeChannings/deno-arm64/releases/download/${VERSION}/deno-$(echo $TARGETPLATFORM | tr '/' '-').zip -o /tmp/deno.zip || true
|
||||
|
||||
RUN cd /tmp/deno && \
|
||||
RUN [ -f "/tmp/deno.zip" ] && \
|
||||
cd /tmp/deno && \
|
||||
unzip /tmp/deno.zip && \
|
||||
mv -fv /tmp/deno/deno /usr/bin/deno && \
|
||||
chmod +x /usr/bin/deno && \
|
||||
|
Loading…
x
Reference in New Issue
Block a user