Skip to content

Commit 4ba613d

Browse files
authored
[deno] use installer and upgrade to canary build instead of building from the crate (#45)
* use deno installer and upgrade to canary build instead of building from the crate * remove newline
1 parent 27a34b7 commit 4ba613d

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

deno/base/1.37-dev/Dockerfile

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,14 @@ RUN /usr/bin/apt-install Aptfile
3434

3535
USER noteable
3636

37-
ENV PATH="/srv/noteable/.cargo/bin:${PATH}"
38-
39-
# install deno from latest commit when jupyter2 branch was merged
40-
# TODO: update this once merged to main branch and use package install instead
41-
RUN cargo install \
42-
--git https://github.com/denoland/deno \
43-
--rev bf0760411336ce5ebb1c103f766c8154af478414 \
44-
--features __runtime_js_sources \
45-
deno
37+
# use the deno installer and upgrade to the latest (canary) build
38+
# https://docs.deno.com/runtime/manual/references/contributing/release_schedule
39+
ENV DENO_INSTALL=/srv/noteable
40+
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
41+
RUN curl -fsSL https://deno.land/x/install/install.sh | sh
42+
# deno installs to `DENO_INSTALL/bin`, so we'll add to PATH for follow-on deno commands
43+
ENV PATH="${DENO_INSTALL}/bin/:${PATH}"
44+
RUN deno upgrade --canary
4645

4746
# the kernel needs the deno kernelspec discoverable locally before it can start
4847
# hadolint ignore=DL3059

0 commit comments

Comments
 (0)