don't copy . in Dockerfile

main
rasmus 3 months ago
parent 9363ec9d70
commit a6eba73f0c
  1. 6
      Dockerfile

@ -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…
Cancel
Save