Fixed dockerfile

This commit is contained in:
GoodiesHQ 2024-10-29 03:22:05 -07:00
parent 50e8222275
commit 33fa0842d7

View file

@ -2,8 +2,9 @@ FROM golang:1.23.2 as builder
WORKDIR /build
COPY go.mod go.sum ./
RUN go mod download
COPY cmd config ./
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/cfdns
COPY cmd ./cmd
COPY config ./config
RUN CGO_ENABLED=0 GOOS=linux go build -o /app/cfdns ./cmd
FROM scratch
COPY --from=builder /app/cfdns /app/cfdns