ldap-proxy/Dockerfile
Michael Aldridge 55b4034696 Add dockerfile
2020-11-09 22:36:02 -08:00

10 lines
238 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
ENTRYPOINT ["/ldapd"]
COPY --from=build /ldapd /ldapd