ldap-proxy/Dockerfile
2020-11-10 22:05:02 -08:00

11 lines
308 B
Docker

FROM golang:1.15 as build
WORKDIR /netauth/ldap
COPY . .
RUN go mod vendor && \
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-extldflags "-static"' -o /ldapd .
FROM scratch
LABEL org.opencontainers.image.source https://github.com/netauth/ldap
ENTRYPOINT ["/ldapd"]
COPY --from=build /ldapd /ldapd