Build generation and dockerfile changes

This commit is contained in:
Shaz hemani 2020-09-15 12:53:05 +05:00
parent 7e9df9b052
commit ede359bcd8
No known key found for this signature in database
GPG key ID: 976B8B017678D5AC
2 changed files with 5 additions and 5 deletions

View file

@ -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"]
CMD ["/go/src/app/bins/./genityapp"]

View file

@ -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