Build generation and dockerfile changes
This commit is contained in:
parent
7e9df9b052
commit
ede359bcd8
|
@ -5,8 +5,8 @@ WORKDIR /go/src/app/cmd
|
||||||
|
|
||||||
ADD . /go/src/app
|
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"]
|
4
Makefile
4
Makefile
|
@ -5,6 +5,6 @@ run: build
|
||||||
docker-compose up
|
docker-compose up
|
||||||
|
|
||||||
build-binary:
|
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
|
||||||
|
|
Loading…
Reference in a new issue