use COPY instead of ADD

This commit is contained in:
bakito 2022-01-19 21:23:40 +01:00
parent 5cd27f4684
commit 0711dd746c
No known key found for this signature in database
GPG key ID: FAF93C1C384DD6B4

View file

@ -12,7 +12,7 @@ ENV GOPROXY=https://goproxy.io \
CGO_ENABLED=0 \
GOOS=linux
ADD . /go/src/app/
COPY . /go/src/app/
RUN go build -a -installsuffix cgo -ldflags="-w -s -X github.com/bakito/adguardhome-sync/version.Version=${VERSION} -X github.com/bakito/adguardhome-sync/version.Build=${BUILD}" -o adguardhome-sync . \
&& upx -q adguardhome-sync