don't copy . in Dockerfile
This commit is contained in:
		| @@ -2,10 +2,12 @@ | |||||||
| FROM golang:1.19 AS builder | FROM golang:1.19 AS builder | ||||||
| WORKDIR /wd | WORKDIR /wd | ||||||
|  |  | ||||||
| COPY go.mod go.sum vendor ./ | COPY vendor ./vendor | ||||||
|  | COPY go.mod go.sum ./ | ||||||
| RUN go mod download | RUN go mod download | ||||||
|  |  | ||||||
| COPY . ./ | COPY main.go ./ | ||||||
|  | COPY pkg ./pkg | ||||||
| RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o logmower-shippper | RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o logmower-shippper | ||||||
|  |  | ||||||
| FROM alpine | FROM alpine | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user