From b3c5f2a65cd7f3a45e93499b94688e49372d5c61 Mon Sep 17 00:00:00 2001 From: Robson Roberto Souza Peixoto Date: Wed, 13 Nov 2024 14:27:00 -0300 Subject: [PATCH] style: format Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index a136529..67a0f4b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,13 +6,13 @@ ARG TARGETOS ARG TARGETARCH WORKDIR /src RUN --mount=type=cache,target=/go/pkg/mod \ - --mount=type=bind,source=go.mod,target=go.mod \ - --mount=type=bind,source=go.sum,target=go.sum \ - go mod download -x + --mount=type=bind,source=go.mod,target=go.mod \ + --mount=type=bind,source=go.sum,target=go.sum \ + go mod download -x RUN --mount=type=cache,target=/go/pkg/mod \ - --mount=type=bind,target=. \ - GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /usr/local/bin/app . + --mount=type=bind,target=. \ + GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o /usr/local/bin/app . FROM --platform=$BUILDPLATFORM alpine:${ALPINE_VERSION} COPY --from=builder /usr/local/bin/app /usr/local/bin/app