- Instructions on compiling Go code into a minimal container are taken from here
$ CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .
- Copy certs file:
cp /etc/ssl/certs/ca-certificates.crt .
docker build -t bing-img-url:latest .
docker run -it --rm --name BingImageURL -p 9001:9001 bing-img-url:latest 9001