From 79df0ea4b99c94838f90b9ee4216bccc1242d4d3 Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sun, 12 Jan 2025 16:02:26 +0200 Subject: [PATCH] Commit --- Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index fd532b4..ac58245 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,23 +2,25 @@ FROM golang:1.23.4 AS builder WORKDIR /app -COPY . . +COPY go.mod go.sum ./ RUN go mod download && go mod verify +# Copy project files +COPY . . + +# Build RUN make -FROM alpine:3.7 - -WORKDIR /app +# 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 -RUN chmod +x /app/docker-ldap-change-password-web-ui - ADD static /app/static ADD templates /app/templates -EXPOSE 8080 +# Set working directory +WORKDIR /app -ENTRYPOINT [ "docker-ldap-change-password-web-ui" ] \ No newline at end of file +ENTRYPOINT ["/app/docker-ldap-change-password-web-ui"] \ No newline at end of file