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).
This commit is contained in:
mohammad istari 2020-04-06 11:17:41 +07:00
parent b1852c7c8e
commit 64d471d13a

View file

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