Permalink
b298439 Jul 6, 2018
@natemcmaster @JunTaoLuo
14 lines (11 sloc) 548 Bytes
FROM microsoft/dotnet:2.0.9-runtime-jessie
# set up network
ENV ASPNETCORE_URLS http://+:80
ENV ASPNETCORE_PKG_VERSION 2.0.9
# set up the runtime store
RUN for version in '2.0.0' '2.0.3' '2.0.5' '2.0.6' '2.0.7' '2.0.8' '2.0.9'; do \
curl -o /tmp/runtimestore.tar.gz https://dist.asp.net/runtimestore/$version/linux-x64/aspnetcore.runtimestore.tar.gz \
&& export DOTNET_HOME=$(dirname $(readlink $(which dotnet))) \
&& tar -x -C $DOTNET_HOME -f /tmp/runtimestore.tar.gz \
&& rm /tmp/runtimestore.tar.gz; \
done