- Save this Dockerfile into a directory
docker build -t deno_builder .
git clone --recurse-submodules https://github.com/denoland/deno.git
docker run -it --rm -v $PWD/deno:/deno -w /deno deno_builder bash
- (Now inside the container)
./tools/setup.py
./tools/build.py -vv
./target/debug/deno tests/002_hello.ts
should print "Hello World" to the console
Last active
August 9, 2019 04:40
-
-
Save crabmusket/8b4c00d5bea8b2135275093a5418a51d to your computer and use it in GitHub Desktop.
Build Deno in a Docker container
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
FROM ubuntu:16.04 | |
RUN apt-get update && apt-get install \ | |
build-essential \ | |
clang-3.8 \ | |
curl \ | |
git \ | |
libxml2 \ | |
python-dev \ | |
-y | |
RUN curl -o nodejs.deb https://deb.nodesource.com/node_12.x/pool/main/n/nodejs/nodejs_12.7.0-1nodesource1_amd64.deb \ | |
&& apt-get install -y ./nodejs.deb \ | |
&& rm nodejs.deb \ | |
&& npm install -g [email protected] | |
RUN curl -sSf https://sh.rustup.rs | 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