FROM mcr.microsoft.com/dotnet/aspnet:5.0.11 EXPOSE 80 COPY proget/ /usr/local/proget/ ENV SQL_CONNECTION_STRING "Data Source=proget-sql; Initial Catalog=ProGet; User Id=sa; Password=;" ENV PROGET_SVC_MODE both VOLUME /var/proget/packages VOLUME /var/proget/extensions VOLUME /usr/share/Inedo/SharedConfig WORKDIR /usr/local/proget/ CMD ([ -f /usr/share/Inedo/SharedConfig/ProGet.config ] || echo '<?xml version="1.0" encoding="utf-8"?><InedoAppConfig><ConnectionString Type="SqlServer">'"`$SQL_CONNECTION_STRING"'</ConnectionString><WebServer Enabled="true" Urls="http://*:80/"/></InedoAppConfig>' > /usr/share/Inedo/SharedConfig/ProGet.config) \ && exec /usr/local/proget/service/ProGet.Service run --mode=`$PROGET_SVC_MODE --linuxContainer