diff --git a/Dockerfile b/Dockerfile index 7e81ca4..73f524d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ ENV MAKE_ARGS=${MAKE_ARGS} RUN --mount=type=cache,target="/go/pkg/mod" \ --mount=type=cache,target="/root/.cache/go-build" \ - make ${MAKE_ARGS} build create-docker-entrypoint && \ + make ${MAKE_ARGS} build link-binary && \ mv bin /app/ && \ mkdir -p /app/error_pages /app/certs @@ -57,4 +57,4 @@ ENV DOCKER_HOST=unix:///var/run/docker.sock WORKDIR /app -CMD ["/app/entrypoint.sh"] \ No newline at end of file +CMD ["/app/run"] \ No newline at end of file diff --git a/Makefile b/Makefile index 26a25ce..a65d227 100755 --- a/Makefile +++ b/Makefile @@ -103,9 +103,8 @@ build-docker: --build-arg MAKE_ARGS="agent=${agent}" \ . -create-docker-entrypoint: - printf '#!/bin/sh\n/app/${NAME}\n' > bin/entrypoint.sh - chmod +x bin/entrypoint.sh +link-binary: + ln -s /app/${NAME} bin/run # To generate schema