From f188f740ff7ae5b26ab8b5ebcb0c110472ecdb9d Mon Sep 17 00:00:00 2001 From: Tanmoy Sarkar <57363826+tanmoysrt@users.noreply.github.com> Date: Sun, 28 Apr 2024 16:11:04 +0000 Subject: [PATCH] chore: remove cache from build --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 45e19bc..db6c221 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM --platform=$BUILDPLATFORM golang:1.21.6-bookworm AS build-env ENV CGO_ENABLED=0 WORKDIR /src COPY . . -RUN --mount=type=cache,target=/root/.cache/go-build go build -o goapp . +RUN go build -o goapp . # final stage FROM --platform=$BUILDPLATFORM debian:bookworm