Skip to content

Instantly share code, notes, and snippets.

@y12studio
Created March 9, 2019 08:05
Show Gist options
  • Save y12studio/fa8920357354e6119ea1650ec9a9e39b to your computer and use it in GitHub Desktop.
Save y12studio/fa8920357354e6119ea1650ec9a9e39b to your computer and use it in GitHub Desktop.
Dockerfile-codercom-server-rust
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