mirror of
https://github.com/netauth/ldap.git
synced 2024-11-24 12:31:55 -06:00
10 lines
238 B
Docker
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
|