Created
March 9, 2019 08:05
-
-
Save y12studio/fa8920357354e6119ea1650ec9a9e39b to your computer and use it in GitHub Desktop.
Dockerfile-codercom-server-rust
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 codercom/code-server | |
# https://github.com/codercom/code-server/blob/master/Dockerfile | |
# docker run -p 8443:8443 -v "${PWD}:/root/project" codercom/code-server code-server --allow-http --no-auth | |
RUN apt install -y curl jq wget build-essential | |
# https://hub.docker.com/r/rustlang/rust/dockerfile | |
ENV RUSTUP_HOME=/usr/local/rustup \ | |
CARGO_HOME=/usr/local/cargo \ | |
USER=root \ | |
PATH=/usr/local/cargo/bin:$PATH | |
RUN set -eux; \ | |
\ | |
url="https://static.rust-lang.org/rustup/dist/x86_64-unknown-linux-gnu/rustup-init"; \ | |
wget "$url"; \ | |
chmod +x rustup-init; \ | |
./rustup-init -y --no-modify-path --default-toolchain nightly; \ | |
rm rustup-init; \ | |
chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ | |
rustup --version; \ | |
cargo --version; \ | |
rustc --version; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment