Spaces:
Runtime error
Runtime error
Create Dockerfile
Browse files- Dockerfile +16 -0
Dockerfile
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Sample Dockerfile
|
| 2 |
+
|
| 3 |
+
# Indicates that the windowsservercore image will be used as the base image.
|
| 4 |
+
FROM mcr.microsoft.com/windows/servercore:ltsc2019
|
| 5 |
+
|
| 6 |
+
# Metadata indicating an image maintainer.
|
| 7 |
+
LABEL maintainer="jshelton@contoso.com"
|
| 8 |
+
|
| 9 |
+
# Uses dism.exe to install the IIS role.
|
| 10 |
+
RUN dism.exe /online /enable-feature /all /featurename:iis-webserver /NoRestart
|
| 11 |
+
|
| 12 |
+
# Creates an HTML file and adds content to this file.
|
| 13 |
+
RUN echo "Hello World - Dockerfile" > c:\inetpub\wwwroot\index.html
|
| 14 |
+
|
| 15 |
+
# Sets a command or process that will run each time a container is run from the new image.
|
| 16 |
+
CMD [ "cmd" ]
|