stuzer05 79df0ea4b9
All checks were successful
build docker image / docker-build (push) Successful in 55s
Commit
2025-01-12 16:02:26 +02:00

26 lines
488 B
Docker

FROM golang:1.23.4 AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
# Copy project files
COPY . .
# Build
RUN make
# Final stage
FROM chromedp/headless-shell:latest
# Copy the binary and required files
COPY --from=builder /app/docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui
ADD static /app/static
ADD templates /app/templates
# Set working directory
WORKDIR /app
ENTRYPOINT ["/app/docker-ldap-change-password-web-ui"]