fix: changed Makefile build execution and Docker container

This commit is contained in:
bahadylbekov 2020-10-22 00:30:08 +03:00
parent 2b8a44f071
commit 1f059b7fcd
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
FROM golang:1.14.6-alpine3.12 FROM golang:1.14.6-alpine3.12
RUN mkdir /p2p-oracle-node RUN mkdir /dione
COPY . /p2p-oracle-node COPY . /dione
WORKDIR /p2p-oracle-node WORKDIR /dione
RUN apk add git RUN apk add git
RUN apk add --update make RUN apk add --update make
@ -9,4 +9,4 @@ RUN go mod download
RUN make build RUN make build
CMD ["./main"] CMD ["./dione"]

View File

@ -1,6 +1,6 @@
.PHONY: build .PHONY: build
build: build:
go build -v main.go go build -v cmd/dione/dione.go
test: test:
go test -v -race -timeout 30s ./ ... go test -v -race -timeout 30s ./ ...