Created
December 27, 2014 17:41
-
-
Save muojp/64e70b585d691b96b181 to your computer and use it in GitHub Desktop.
KRE-Mono 1.0.0-beta1 + sample code
This file contains hidden or 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 mono:3.10 | |
ENV KRE_VERSION 1.0.0-beta1 | |
ENV KRE_USER_HOME /opt/kre | |
RUN apt-get -qq update && apt-get -qqy install unzip | |
RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/v$KRE_VERSION/kvminstall.sh | sh | |
RUN bash -c "source $KRE_USER_HOME/kvm/kvm.sh \ | |
&& kvm install $KRE_VERSION -a default \ | |
&& kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default" | |
# Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old) | |
RUN apt-get -qqy install \ | |
autoconf \ | |
automake \ | |
build-essential \ | |
libtool | |
RUN LIBUV_VERSION=1.0.0-rc2 \ | |
&& curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \ | |
&& cd /usr/local/src/libuv-$LIBUV_VERSION \ | |
&& sh autogen.sh && ./configure && make && make install \ | |
&& rm -rf /usr/local/src/libuv-$LIBUV_VERSION \ | |
&& ldconfig | |
ENV PATH $PATH:$KRE_USER_HOME/packages/default/bin | |
RUN apt-get -qqy install git | |
RUN git clone https://github.com/davidfowl/HelloWorldVNext /opt/helloworld | |
WORKDIR /opt/helloworld/src/helloworldweb | |
RUN kpm restore | |
EXPOSE 5000 | |
CMD k web |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment