Closed mbana closed 1 year ago
Name | Link |
---|---|
Latest commit | bddea1655b0150ba3626aa9920d62037cd3a69d1 |
Latest deploy log | https://app.netlify.com/sites/kusk-docs-preview/deploys/63985f52ee28fe0008314954 |
Please do not merge just yet.
I want to monitor a few things.
Closing as I am not sure why it's not working. Strange because it did work in the past.
Summary
Run
go mod vendor
and trackvendor/
folder.Adjust
Dockerfiles
to not rungo mod download
as all the dependencies are stored in thevendor/
folder.Add
-mod=vendor
flag togo build
builds inDockerfile
s.Add
syntax = docker/dockerfile:experimental
so we can rungo build
with--mount=type=cache,target=/go/pkg/mod --mount=type=cache,target=/root/.cache/go-build
which is apparently faster.build/manager/Dockerfile
Adjust
WORKDIR
to/go/src
to match otherDockerfile
s.Change
-o manager
to-o main
which results inENTRYPOINT ["/main"]
.Signed-off-by: Mohamed Bana mohamed@bana.io