don't copy . in Dockerfile

This commit is contained in:
rasmus 2022-11-09 21:55:36 +02:00
parent 9363ec9d70
commit a6eba73f0c

View File

@ -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