Skip to content

Instantly share code, notes, and snippets.

@MAnfal
Created November 12, 2020 00:55
Show Gist options
  • Save MAnfal/836b2859b96c8229d31cb249212ab4a6 to your computer and use it in GitHub Desktop.
Save MAnfal/836b2859b96c8229d31cb249212ab4a6 to your computer and use it in GitHub Desktop.
learn_rust_docker_file
FROM ubuntu:latest
RUN mkdir ~/src
WORKDIR /root/src
RUN apt update
RUN apt install -y curl
# Install linker for rust
# Stackoverflow https://stackoverflow.com/questions/52445961/how-do-i-fix-the-rust-error-linker-cc-not-found-for-debian-on-windows-10
RUN apt install -y build-essential
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
RUN /bin/bash -c "source $HOME/.cargo/env"
ENTRYPOINT ["tail", "-f", "/dev/null"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment