Created
May 14, 2016 09:08
-
-
Save netgusto/77a8faaa8bf348468c7e6193cba529b6 to your computer and use it in GitHub Desktop.
Rustup in a 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:latest | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update | |
RUN apt-get upgrade -y | |
RUN apt-get install -y apt-utils | |
RUN apt-get install -y curl build-essential | |
RUN apt-get install -y file | |
WORKDIR /tmp | |
RUN curl https://sh.rustup.rs -sSf > rustup.sh | |
RUN sh ./rustup.sh -y | |
RUN rm -Rf /tmp/* | |
RUN mkdir -p /source | |
WORKDIR /source | |
RUN echo "source /root/.cargo/env" > /run.sh | |
RUN echo "/bin/bash" >> /run.sh | |
ENV USER=ROOT | |
ENTRYPOINT ["/bin/bash", "/run.sh"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment