From b689115105596be5a898b111e21a3c98b61ab875 Mon Sep 17 00:00:00 2001 From: Paulo Truta Date: Fri, 12 Feb 2021 01:23:16 +0100 Subject: [PATCH] Using Makefile in Dockerfile --- Dockerfile | 2 +- Makefile | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5eb99ba..3d21ce5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,4 +8,4 @@ RUN go mod download RUN go get github.com/githubnemo/CompileDaemon -ENTRYPOINT CompileDaemon --build="make build" --command=./main \ No newline at end of file +ENTRYPOINT CompileDaemon --build="make build" --command=./bin/sysctl \ No newline at end of file diff --git a/Makefile b/Makefile index 08fb020..bc1b8a5 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,7 @@ build: -X ${PROJECT}/internal/diagnostics.Commit=${COMMIT} \ -X ${PROJECT}/internal/diagnostics.BuildDate=${BUILD_DATE}" \ -o bin/sysctl-${GOOS}-${GOARCH} ${PROJECT}/cmd/sysctl + cp ./bin/sysctl-${GOOS}-${GOARCH} ./bin/sysctl clean: rm -rf ${BUILD_DIR}