From ede359bcd83c5878803aaf1894c9520538ec5e0d Mon Sep 17 00:00:00 2001 From: Shaz hemani Date: Tue, 15 Sep 2020 12:53:05 +0500 Subject: [PATCH] Build generation and dockerfile changes --- Dockerfile | 6 +++--- Makefile | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 16e4afb..6e3bbf5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,8 +5,8 @@ WORKDIR /go/src/app/cmd ADD . /go/src/app -RUN go get -d -v +#RUN go get -d -v -Run go build -o bins/genityapp +#Run go build -o bins/genityapp -CMD ["bins/./genityapp"] \ No newline at end of file +CMD ["/go/src/app/bins/./genityapp"] \ No newline at end of file diff --git a/Makefile b/Makefile index 85e8e06..2bcdde3 100644 --- a/Makefile +++ b/Makefile @@ -5,6 +5,6 @@ run: build docker-compose up build-binary: - GOOS=linux GOARCH=amd64 go build -o bins/genityapp -v cmd/genityapp/* + GOOS=linux GOARCH=amd64 go build -o bins/genityapp -v cmd/* -.PHONY: build-binary run build +.PHONY: build-binary run build