diff --git a/dotnet/Dockerfile b/dotnet/Dockerfile new file mode 100644 index 0000000..b9c31ca --- /dev/null +++ b/dotnet/Dockerfile @@ -0,0 +1,29 @@ +FROM iron/base + +MAINTAINER 'Phi Huynh (trumhemcut@gmail.com)' + +RUN echo '@edge http://nl.alpinelinux.org/alpine/edge/main' >> /etc/apk/repositories +RUN echo '@community http://nl.alpinelinux.org/alpine/edge/community' >> /etc/apk/repositories +RUN echo '@testing http://nl.alpinelinux.org/alpine/edge/testing' >> /etc/apk/repositories +RUN apk update && apk upgrade + +RUN apk add --update bash + +ENV DNX_VERSION 1.0.0-rc1-update1 +ENV DNX_USER_HOME /opt/DNX_BRANCH +ENV DNX_RUNTIME_ID ironbase + +RUN echo > ~/.bash_profile +RUN echo > ~/.profile + +RUN apk add unzip curl gettext + +RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/dnvminstall.sh | DNX_USER_HOME=$DNX_USER_HOME DNX_BRANCH=v$DNX_VERSION sh +RUN bash -c "source $DNX_USER_HOME/dnvm/dnvm.sh \ + && dnvm install $DNX_VERSION -alias default -r coreclr \ + && dnvm alias default | xargs -i ln -s $DNX_USER_HOME/runtimes/{} $DNX_USER_HOME/runtimes/default" + +ENV PATH $PATH:$DNX_USER_HOME/runtimes/default/bin + +# Clean APK cache +RUN rm -rf /var/cache/apk/* \ No newline at end of file