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