stefanscherer/webserver-windows

By stefanscherer

Updated almost 6 years ago

A minimal webserver written in Go to run in a Windows nanoserver container

Image
1

1M+

stefanscherer/webserver-windows repository overview

webserver - a minimal webserver to build small Windows Docker images with some HTML content

Usage

To add your own static files and run it as a Windows container use this Dockerfile

Dockerfile
FROM stefanscherer/webserver-windows

COPY . C:\site
WORKDIR C:\\site

EXPOSE 8080
Create own Docker image

Then create your Docker image with

docker build -t mysite .
Run a container

Run your container with

docker run -d --name=mysite -p 8080:8080 mysite
Browse site

Open a browser with

start http://$(docker inspect -f '{{ .NetworkSettings.Networks.nat.IPAddress }}' mysite):8080

or use the IP address of your Docker host if accessing from a remote machine.

License

MIT

Tag summary

Content type

Image

Digest

Size

102.3 MB

Last updated

almost 6 years ago

docker pull stefanscherer/webserver-windows