2021-09-10 18:18:11 +02:00
|
|
|
# Stage 1: Build
|
2022-01-07 09:14:44 +01:00
|
|
|
FROM docker.io/golang:1.17.6-bullseye AS builder
|
2021-04-26 15:35:56 +02:00
|
|
|
|
2021-06-16 12:02:02 +02:00
|
|
|
WORKDIR /go/src/goauthentik.io
|
2021-04-26 15:35:56 +02:00
|
|
|
|
2021-06-16 12:02:02 +02:00
|
|
|
COPY . .
|
2021-11-02 10:11:51 +01:00
|
|
|
ENV CGO_ENABLED=0
|
2021-05-30 17:28:58 +02:00
|
|
|
RUN go build -o /go/ldap ./cmd/ldap
|
2021-04-26 15:35:56 +02:00
|
|
|
|
2021-09-10 18:18:11 +02:00
|
|
|
# Stage 2: Run
|
2021-11-02 10:11:51 +01:00
|
|
|
FROM gcr.io/distroless/static-debian11:debug
|
2021-04-26 15:35:56 +02:00
|
|
|
|
2021-12-30 16:33:13 +01:00
|
|
|
LABEL org.opencontainers.image.url https://goauthentik.io
|
|
|
|
LABEL org.opencontainers.image.description goauthentik.io LDAP outpost, see https://goauthentik.io for more info.
|
|
|
|
LABEL org.opencontainers.image.source https://github.com/goauthentik/authentik
|
|
|
|
|
2021-07-21 21:31:25 +02:00
|
|
|
ARG GIT_BUILD_HASH
|
|
|
|
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
|
|
|
|
2021-05-30 17:28:58 +02:00
|
|
|
COPY --from=builder /go/ldap /
|
2021-04-26 15:35:56 +02:00
|
|
|
|
2021-09-09 15:52:24 +02:00
|
|
|
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:9300/akprox/ping" ]
|
2021-06-06 23:07:13 +02:00
|
|
|
|
2021-09-21 21:40:08 +02:00
|
|
|
EXPOSE 3389 6636 9300
|
|
|
|
|
2021-04-26 15:35:56 +02:00
|
|
|
ENTRYPOINT ["/ldap"]
|