stuzer05
79df0ea4b9
All checks were successful
build docker image / docker-build (push) Successful in 55s
26 lines
488 B
Docker
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"] |