Skip to content

Instantly share code, notes, and snippets.

@KentaroAOKI
Created December 23, 2014 02:03
Show Gist options
  • Save KentaroAOKI/012b4340862c560ded0e to your computer and use it in GitHub Desktop.
Save KentaroAOKI/012b4340862c560ded0e to your computer and use it in GitHub Desktop.
Creating a base Docker image with ASP.NET vNext and Mono.
# We will use an existing image based on the
# verson 3.10 of Mono.
# This will be automatically retrieved from the Docker Hub.
# Docker Hub is Dockers community repository of pre-built containers
FROM mono:3.10
# Ensure everything is up to date on the machine and install unzip
RUN apt-get -qq update && apt-get -qqy install unzip
# Install ASP.NET vNext and latest K Runtime Environment (KRE)
RUN curl -s https://raw.githubusercontent.com/aspnet/Home/master/kvminstall.sh | sh
RUN bash -c "source /root/.kre/kvm/kvm.sh \
&& kvm upgrade \
&& kvm alias default | xargs -i ln -s /root/.kre/packages/{} /root/.kre/packages/default"
# "ENV" sets an environment variable which will be set
# whenever the container is started
ENV PATH $PATH:/root/.kre/packages/default/bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment