37b57ac28f
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
16 lines
248 B
Docker
16 lines
248 B
Docker
FROM golang:1.16.4 AS builder
|
|
ARG GIT_BUILD_HASH
|
|
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
|
|
|
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"]
|