From 39a901ce662327548b07d9ad57bace1a35ec1c7b Mon Sep 17 00:00:00 2001
From: Thatcher Peskens
Date: Mon, 14 Dec 2020 12:29:44 +0100
Subject: [PATCH] Implemented feedback
---
Dockerfile.geoip | 18 ------------------
html/index.html | 14 +++++++-------
2 files changed, 7 insertions(+), 25 deletions(-)
delete mode 100644 Dockerfile.geoip
diff --git a/Dockerfile.geoip b/Dockerfile.geoip
deleted file mode 100644
index 6dc4ec1..0000000
--- a/Dockerfile.geoip
+++ /dev/null
@@ -1,18 +0,0 @@
-# Build
-FROM golang:1.13-buster AS build
-WORKDIR /go/src/github.com/mpolden/echoip
-COPY . .
-# Must build without cgo because libc is unavailable in runtime image
-ENV GO111MODULE=on CGO_ENABLED=0
-RUN make
-
-# Run
-FROM scratch
-EXPOSE 8080
-
-COPY --from=build /go/bin/echoip /opt/echoip/
-COPY html /opt/echoip/html
-COPY data /opt/echoip/data
-
-WORKDIR /opt/echoip
-ENTRYPOINT ["/opt/echoip/echoip"]
diff --git a/html/index.html b/html/index.html
index 2093168..2dc79b7 100644
--- a/html/index.html
+++ b/html/index.html
@@ -6,7 +6,7 @@
@@ -56,9 +56,9 @@
@@ -174,7 +174,7 @@
MaxMind, available from
www.maxmind.com
- {{ end }} {{ if .City }}
+ {{ end }} {{ if .Latitude }}
Map