Created
December 23, 2014 02:03
-
-
Save KentaroAOKI/012b4340862c560ded0e to your computer and use it in GitHub Desktop.
Creating a base Docker image with ASP.NET vNext and Mono.
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
# 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