1
0
mirror of https://gitlab.crans.org/nounous/ghostream.git synced 2024-12-22 13:52:19 +00:00

🐳 Use COPY . . in Dockerfile since there isn't any proper method to copy folders in Docker image

This commit is contained in:
Yohann D'ANELLO 2020-09-30 23:01:45 +02:00
parent e8b145550e
commit 3828168742

View File

@ -6,8 +6,7 @@ RUN apt-get update && \
WORKDIR /code WORKDIR /code
COPY go.* ./ COPY go.* ./
RUN go mod download && go get github.com/markbates/pkger/cmd/pkger 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 . .
COPY auth/ internal/ stream/ web/ go.mod go.sum main.go ./
RUN PATH=/root/go/bin:$PATH go generate && go build -o ./out/ghostream . RUN PATH=/root/go/bin:$PATH go generate && go build -o ./out/ghostream .
# Production image # Production image