26 lines
488 B
Docker
Raw Permalink Normal View History

2025-01-12 15:34:37 +02:00
FROM golang:1.23.4 AS builder
2025-01-12 15:33:46 +02:00
2025-01-12 15:44:57 +02:00
WORKDIR /app
2025-01-12 16:02:26 +02:00
COPY go.mod go.sum ./
2025-01-12 15:33:46 +02:00
RUN go mod download && go mod verify
2025-01-12 16:02:26 +02:00
# Copy project files
COPY . .
# Build
2025-01-12 15:33:46 +02:00
RUN make
2025-01-12 16:02:26 +02:00
# Final stage
FROM chromedp/headless-shell:latest
2018-01-26 12:38:19 +01:00
2025-01-12 15:33:46 +02:00
# Copy the binary and required files
2025-01-12 15:44:57 +02:00
COPY --from=builder /app/docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
2018-01-26 12:38:19 +01:00
ADD static /app/static
ADD templates /app/templates
2025-01-12 16:02:26 +02:00
# Set working directory
WORKDIR /app
2018-01-26 12:38:19 +01:00
2025-01-12 16:02:26 +02:00
ENTRYPOINT ["/app/docker-ldap-change-password-web-ui"]