Skip to content

Instantly share code, notes, and snippets.

Last active Aug 9, 2019
What would you like to do?
Build Deno in a Docker container

Build Deno in a Docker container

  1. Save this Dockerfile into a directory
  2. docker build -t deno_builder .
  3. git clone --recurse-submodules
  4. docker run -it --rm -v $PWD/deno:/deno -w /deno deno_builder bash
  5. (Now inside the container) ./tools/
  6. ./tools/ -vv
  7. ./target/debug/deno tests/002_hello.ts should print "Hello World" to the console
FROM ubuntu:16.04
RUN apt-get update && apt-get install \
build-essential \
clang-3.8 \
curl \
git \
libxml2 \
python-dev \
RUN curl -o nodejs.deb \
&& apt-get install -y ./nodejs.deb \
&& rm nodejs.deb \
&& npm install -g npm@6.10.2
RUN curl -sSf | sh -s -- -y --default-toolchain 1.36.0
RUN rustup component add rustfmt \
&& rustup component add clippy
ENV PATH="/root/.cargo/bin:${PATH}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment