Skip to content

Instantly share code, notes, and snippets.

@netgusto
Created May 14, 2016 09:08
Show Gist options
  • Save netgusto/77a8faaa8bf348468c7e6193cba529b6 to your computer and use it in GitHub Desktop.
Save netgusto/77a8faaa8bf348468c7e6193cba529b6 to your computer and use it in GitHub Desktop.
Rustup in a container
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