@@ -0,0 +1,5 @@
+FROM alpine
+COPY z_docker_static_web /z_docker_static_web
+EXPOSE 8080
+ENV WWWROOT /var/www/
+ENTRYPOINT /z_docker_static_web
@@ -0,0 +1,14 @@
+package main
+
+import (
+ "net/http"
+ "os"
+)
+var wwwroot string
+func main() {
+ wwwroot = os.Getenv("WWWROOT")
+ http.Handle("/", http.FileServer(http.Dir(wwwroot)))
+ http.ListenAndServe(":8080", nil)
+}