This repository contains instruction how to build image without Dockerfile (a sample go app) using Cloud Native Buildpack.
- Install required tools stated below.
- Clone repository
git clone https://github.com/iamejboy/cnb-sample-go.git
. - Build and publish image.
cd cnb-sample-go
pack build --publish <image-repo> --builder cloudfoundry/cnb:bionic
- Quick test.
docker run -d -p 9090:8080 --name sample-go <image-repo>
curl -s http://0.0.0.0:9090
Note: Use command pack suggest-builders
to see available builders to use
Tools: