How to deploy go-http-server
With a Dockerfile
FROM registry.gitlab.com/bobymcbobs/go-http-server:latest
ADD mysite /var/run/ko
see usage for more examples.
With crane
BASE_IMAGE=registry.gitlab.com/bobymcbobs/go-http-server:latest
mkdir -p output/var/run
mv some/path/to/dir output/var/run/ko
crane append --base="$BASE_IMAGE" --new_layer=<(cd output/ && tar -f - -c .) --new_tag=registry.example.com/image:tag
please note: the intended output folder must be resulting in /var/run/ko inside, as that's the default serve location for a built container.