2021-05-07 08:43:37 +01:00
|
|
|
FROM golang:1.16.4 AS builder
|
2021-05-12 17:56:44 +01:00
|
|
|
ARG GIT_BUILD_HASH
|
|
|
|
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
2021-04-26 14:35:56 +01:00
|
|
|
|
|
|
|
WORKDIR /work
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go build -o /work/ldap ./cmd/ldap
|
|
|
|
|
|
|
|
FROM gcr.io/distroless/base-debian10:debug
|
|
|
|
|
|
|
|
COPY --from=builder /work/ldap /
|
|
|
|
|
|
|
|
ENTRYPOINT ["/ldap"]
|