sample.dockerfile.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. FROM mono:3.12
  2. ENV KRE_FEED https://www.myget.org/F/aspnetvnext/api/v2
  3. ENV KRE_USER_HOME /opt/kre
  4. RUN apt-get -qq update && apt-get -qqy install unzip
  5. ONBUILD RUN curl -sSL https://raw.githubusercontent.com/aspnet/Home/dev/kvminstall.sh | sh
  6. ONBUILD RUN bash -c "source $KRE_USER_HOME/kvm/kvm.sh \
  7. && kvm install latest -a default \
  8. && kvm alias default | xargs -i ln -s $KRE_USER_HOME/packages/{} $KRE_USER_HOME/packages/default"
  9. # Install libuv for Kestrel from source code (binary is not in wheezy and one in jessie is still too old)
  10. RUN apt-get -qqy install \
  11. autoconf \
  12. automake \
  13. build-essential \
  14. libtool
  15. RUN LIBUV_VERSION=1.0.0-rc2 \
  16. && curl -sSL https://github.com/joyent/libuv/archive/v${LIBUV_VERSION}.tar.gz | tar zxfv - -C /usr/local/src \
  17. && cd /usr/local/src/libuv-$LIBUV_VERSION \
  18. && sh autogen.sh && ./configure && make && make install \
  19. && rm -rf /usr/local/src/libuv-$LIBUV_VERSION \
  20. && ldconfig
  21. ENV PATH $PATH:$KRE_USER_HOME/packages/default/bin
  22. # Extra things to test
  23. RUN echo "string at end"
  24. RUN echo must work 'some str' and some more
  25. RUN echo hi this is # not a comment
  26. RUN echo 'String with ${VAR} and another $one here'