Public Repository

Last pushed: 9 months ago
Short Description
Short description is empty for this repo.
Full Description

Modified version of microsoft/aspnet to enable Web.config overrides via environment variables.


Use in place of microsoft/aspnet (4.7.1-windowsservercore-1709).

Prefix app settings with APPSETTING_ and connection strings with CONNSTR_.

For example, to override an app setting with key PageTitle and a connection string named DefaultConnection:

$ docker run -d -p 80:80 -e APPSETTING_PageTitle=Foo -e CONNSTR_DefaultConnection="<connection string>" sample-aspnet-4x

Sample Dockerfile:

FROM anthonychu/aspnet:4.7.1-windowsservercore-1709
WORKDIR /inetpub/wwwroot
COPY . .
Docker Pull Command