mirror of
https://github.com/argoproj/argo-cd
synced 2026-04-21 17:07:16 +00:00
16 lines
No EOL
316 B
Docker
16 lines
No EOL
316 B
Docker
FROM golang:1.14.3 as builder
|
|
|
|
WORKDIR /src
|
|
|
|
COPY go.mod /src/go.mod
|
|
COPY go.sum /src/go.sum
|
|
|
|
RUN go mod download
|
|
|
|
# Perform the build
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags="-w -s" -o /dist/gitops ./agent
|
|
|
|
|
|
FROM alpine/git:v2.24.3
|
|
COPY --from=builder /dist/gitops /usr/local/bin/gitops |