From 3828168742be1e8e92395581b44382890b1c6003 Mon Sep 17 00:00:00 2001 From: Yohann D'ANELLO Date: Wed, 30 Sep 2020 23:01:45 +0200 Subject: [PATCH] :whale: Use COPY . . in Dockerfile since there isn't any proper method to copy folders in Docker image --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 613e557..1d411ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,8 +6,7 @@ RUN apt-get update && \ WORKDIR /code COPY go.* ./ RUN go mod download && go get github.com/markbates/pkger/cmd/pkger -# Don't copy all to save time each time we touch a non-code file -COPY auth/ internal/ stream/ web/ go.mod go.sum main.go ./ +COPY . . RUN PATH=/root/go/bin:$PATH go generate && go build -o ./out/ghostream . # Production image