From 64d471d13a67297c3e6bbd8d53c51d58dd9bc144 Mon Sep 17 00:00:00 2001 From: mohammad istari Date: Mon, 6 Apr 2020 11:17:41 +0700 Subject: [PATCH] Fixes Dockerfile With Go Modules, the current Dockerfile ignores the code that was COPY'd from the Docker context (and thus always building/installing what was on GitHub). --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index df2cbda..3987b78 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,7 @@ WORKDIR /go/src/github.com/chihaya/chihaya COPY . /go/src/github.com/chihaya/chihaya # Install our golang dependencies and compile our binary. -RUN CGO_ENABLED=0 go install github.com/chihaya/chihaya/cmd/... +RUN CGO_ENABLED=0 go install ./cmd/chihaya FROM alpine:latest RUN apk add --no-cache ca-certificates