Skip to content

Commit

Permalink
style: format Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
robsonpeixoto committed Nov 13, 2024
1 parent 11e4acc commit b3c5f2a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b3c5f2a

Please sign in to comment.