Skip to content

Instantly share code, notes, and snippets.

@harishrathi
Created December 13, 2016 11:17
Show Gist options
  • Save harishrathi/4e42a3a37dee599fb8a46116118f4724 to your computer and use it in GitHub Desktop.
Save harishrathi/4e42a3a37dee599fb8a46116118f4724 to your computer and use it in GitHub Desktop.
hosting plain html website in docker
FROM microsoft/iis:latest
RUN mkdir C:\site
RUN powershell -NoProfile -Command \
Import-module IISAdministration; \
New-IISSite -Name "Site" -PhysicalPath C:\site -BindingInformation "*:8000:"
EXPOSE 8000
ADD content/ /site
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment