Skip to content

Commit

Permalink
fix: add argocd cli to image
Browse files Browse the repository at this point in the history
  • Loading branch information
colethienes committed Mar 19, 2024
1 parent ff76ceb commit 8c4555b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,17 @@ FROM golang:1.22-alpine as builder
COPY go.mod go.sum ./
RUN --mount=type=cache,target=/go/cache go mod download

# install argocd cli
RUN --mount=type=cache,target=/go/cache wget -O /go/bin/argocd https://github.com/argoproj/argo-cd/releases/download/v2.10.4/argocd-linux-amd64
RUN chmod +x /go/bin/argocd

# Add source code & build
COPY . .
RUN go build -o /go/bin/infro ./cmd/main.go

FROM golang:1.22-alpine

COPY --from=builder /go/bin/infro /go/bin/infro
COPY --from=builder /go/bin/argocd /go/bin/argocd

ENTRYPOINT [ "infro" ]

0 comments on commit 8c4555b

Please sign in to comment.