From 1f059b7fcdd133a6eac5e4e403745ffef56089db Mon Sep 17 00:00:00 2001 From: bahadylbekov <33404905+bahadylbekov@users.noreply.github.com> Date: Thu, 22 Oct 2020 00:30:08 +0300 Subject: [PATCH] fix: changed Makefile build execution and Docker container --- Dockerfile | 8 ++++---- Makefile | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index f8d33a7..c6f73e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM golang:1.14.6-alpine3.12 -RUN mkdir /p2p-oracle-node -COPY . /p2p-oracle-node -WORKDIR /p2p-oracle-node +RUN mkdir /dione +COPY . /dione +WORKDIR /dione RUN apk add git RUN apk add --update make @@ -9,4 +9,4 @@ RUN go mod download RUN make build -CMD ["./main"] \ No newline at end of file +CMD ["./dione"] \ No newline at end of file diff --git a/Makefile b/Makefile index 1871e0f..d80c315 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ .PHONY: build build: - go build -v main.go + go build -v cmd/dione/dione.go test: go test -v -race -timeout 30s ./ ...