From 3a08c2a0b2cb5e327054fad218dce098b85b87bb Mon Sep 17 00:00:00 2001 From: stuzer05 Date: Sun, 12 Jan 2025 15:44:57 +0200 Subject: [PATCH] Commit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 61782e7..fd532b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM golang:1.23.4 AS builder +WORKDIR /app + COPY . . RUN go mod download && go mod verify @@ -11,7 +13,7 @@ FROM alpine:3.7 WORKDIR /app # Copy the binary and required files -COPY --from=builder /docker-ldap-change-password-web-ui /app/docker-ldap-change-password-web-ui +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 @@ -19,4 +21,4 @@ ADD templates /app/templates EXPOSE 8080 -ENTRYPOINT [ "/app/docker-ldap-change-password-web-ui" ] \ No newline at end of file +ENTRYPOINT [ "docker-ldap-change-password-web-ui" ] \ No newline at end of file