ldap-upstream/Dockerfile

11 lines
308 B
Docker
Raw Permalink Normal View History

2020-11-09 20:27:44 -06:00
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
2020-11-11 00:05:02 -06:00
LABEL org.opencontainers.image.source https://github.com/netauth/ldap
2020-11-09 20:27:44 -06:00
ENTRYPOINT ["/ldapd"]
COPY --from=build /ldapd /ldapd