don't copy . in Dockerfile
This commit is contained in:
parent
9363ec9d70
commit
a6eba73f0c
@ -2,10 +2,12 @@
|
||||
FROM golang:1.19 AS builder
|
||||
WORKDIR /wd
|
||||
|
||||
COPY go.mod go.sum vendor ./
|
||||
COPY vendor ./vendor
|
||||
COPY go.mod go.sum ./
|
||||
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
|
||||
|
||||
FROM alpine
|
||||
|
Loading…
Reference in New Issue
Block a user