Using Makefile in Dockerfile
parent
2e8a73d0ea
commit
b689115105
|
@ -8,4 +8,4 @@ RUN go mod download
|
||||||
|
|
||||||
RUN go get github.com/githubnemo/CompileDaemon
|
RUN go get github.com/githubnemo/CompileDaemon
|
||||||
|
|
||||||
ENTRYPOINT CompileDaemon --build="make build" --command=./main
|
ENTRYPOINT CompileDaemon --build="make build" --command=./bin/sysctl
|
1
Makefile
1
Makefile
|
@ -15,6 +15,7 @@ build:
|
||||||
-X ${PROJECT}/internal/diagnostics.Commit=${COMMIT} \
|
-X ${PROJECT}/internal/diagnostics.Commit=${COMMIT} \
|
||||||
-X ${PROJECT}/internal/diagnostics.BuildDate=${BUILD_DATE}" \
|
-X ${PROJECT}/internal/diagnostics.BuildDate=${BUILD_DATE}" \
|
||||||
-o bin/sysctl-${GOOS}-${GOARCH} ${PROJECT}/cmd/sysctl
|
-o bin/sysctl-${GOOS}-${GOARCH} ${PROJECT}/cmd/sysctl
|
||||||
|
cp ./bin/sysctl-${GOOS}-${GOARCH} ./bin/sysctl
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf ${BUILD_DIR}
|
rm -rf ${BUILD_DIR}
|
||||||
|
|
Loading…
Reference in New Issue