Skip to content

Commit

Permalink
Fix up dockerfile
Browse files Browse the repository at this point in the history
Signed-off-by: Kevin Fox <[email protected]>
  • Loading branch information
kfox1111 committed Jan 9, 2025
1 parent dc94fa5 commit 08f84cd
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
FROM docker.io/library/golang:1.23.2 as build

COPY * /build/
COPY . /build/
WORKDIR /build

RUN \
GOPROXY=direct CGO_ENABLED=0 go build .
GOPROXY=direct CGO_ENABLED=0 go build cmd/main.go && \
mv main spire-ha-agent

FROM gcr.io/distroless/static-debian12
COPY --from=build /build/spire-ha-agent /usr/bin/spire-ha-agent
Expand Down

0 comments on commit 08f84cd

Please sign in to comment.