Add note about buildKit in the DockerFile

This commit is contained in:
Neeraj Gupta 2023-10-30 08:56:03 +05:30
parent 6f11aa75b6
commit ece4a2b722

View file

@ -10,6 +10,7 @@ COPY go.sum .
RUN go mod download
COPY . .
# the --mount option requires BuildKit. Refer to https://docs.docker.com/go/buildkit/ to learn how to build images with BuildKit enabled
RUN --mount=type=cache,target=/root/.cache/go-build \
go build -o ente-cli main.go