2025-01-12 15:34:37 +02:00
|
|
|
FROM golang:1.23.4 AS builder
|
2025-01-12 15:33:46 +02:00
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
|
|
|
RUN go mod download && go mod verify
|
|
|
|
|
|
|
|
RUN make
|
|
|
|
|
2018-01-26 12:38:19 +01:00
|
|
|
FROM alpine:3.7
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
2025-01-12 15:33:46 +02:00
|
|
|
# Copy the binary and required files
|
2025-01-12 15:42:57 +02:00
|
|
|
COPY --from=builder /docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
|
2025-01-12 15:33:46 +02:00
|
|
|
RUN chmod +x /app/docker-ldap-change-password-web-ui
|
2025-01-12 15:31:19 +02:00
|
|
|
|
2018-01-26 12:38:19 +01:00
|
|
|
ADD static /app/static
|
|
|
|
ADD templates /app/templates
|
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
|
2025-01-12 15:20:54 +02:00
|
|
|
ENTRYPOINT [ "/app/docker-ldap-change-password-web-ui" ]
|