Last active
June 1, 2017 11:05
-
-
Save badboy/04bd1981b6c2928feb92e8f4c0f789bb to your computer and use it in GitHub Desktop.
Dockerfile to create janerik/rust-emscripten. See https://hub.docker.com/r/janerik/rust-emscripten
This file contains hidden or 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 | |
MAINTAINER Jan-Erik Rediger | |
RUN apt-get update && \ | |
apt-get install -y --no-install-recommends \ | |
curl ca-certificates vim-tiny nano gcc libc6-dev python && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
mkdir -p /root/data/rust && \ | |
mkdir -p /root/data/emsdk | |
WORKDIR /root | |
COPY rust/ /root/data/rust/ | |
COPY emsdk_portable/ /root/data/emsdk/ | |
COPY bashrc /root/.bashrc | |
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y --no-modify-path && \ | |
export PATH=/root/.cargo/bin:$PATH && \ | |
rustup toolchain link emscripten /root/data/rust && \ | |
rustup default emscripten && \ | |
printf 'fn main() {\n println!("Hello World!");\n}\n' > /root/hello.rs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment