Skip to content

Latest commit

 

History

History
23 lines (17 loc) · 627 Bytes

README.md

File metadata and controls

23 lines (17 loc) · 627 Bytes

Build without custom buildpack

build the app

docker run \ -v /var/run/docker.sock.raw:/var/run/docker.sock \ -v $PWD:/workspace -w /workspace \ -u501 \ buildpacksio/pack build go-sample \ --builder=gcr.io/buildpacks/builder:v1

run the app

docker run -p8080:8080 go-sample

build with custom buildpack

set default-builder

pack config default-builder cnbs/sample-builder:bionic

build the app

pack build go-sample --path . --buildpack ./go-buildpack

build with environment variable

pack build go-sample --path . --env="PORT:8081" --buildpack ./go-buildpack