FROM kvriel/microsoft-iis-sql
RUN powershell -NoProfile -Command Remove-Item -Recurse C:\inetpub\wwwroot*
WORKDIR /inetpub/wwwroot
COPY content/ .
SHELL ["powershell", "-NoProfile", "-Command", "$ErrorActionPreference = 'Stop';"]
RUN Set-StrictMode -Version latest ;
Invoke-Sqlcmd -Query "ALTER LOGIN sa with password='{password}'; ALTER LOGIN sa ENABLE;" -ServerInstance "." ;
Invoke-Sqlcmd -Query "CREATE DATABASE {database} ON (FILENAME = 'C:{database}.mdf') FOR ATTACH_REBUILD_LOG ;" -ServerInstance "." ;
ENTRYPOINT ["C:\ServiceMonitor.exe", "w3svc"]
$ docker build -t iis-sql-site .
$ docker run -d -p 80:80 --name my-running-site iis-sql-site
You need to specify an ENTRYPOINT in your Dockerfile since the kvriel/microsoft-iis-sql base image does not includes an entrypoint application that monitors the status of the IIS World Wide Web Publishing Service (W3SVC).
Content type
Image
Digest
Size
3 GB
Last updated
about 7 years ago
docker pull kvriel/microsoft-iis-sql