Fix Docker build context

This commit is contained in:
2026-03-12 18:51:32 +01:00
parent 464f4c3ec4
commit e23afa355a
3 changed files with 4 additions and 4 deletions
+4 -1
View File
@@ -5,7 +5,10 @@ WORKDIR /src
COPY go.mod go.sum ./
RUN go mod download
COPY . .
COPY cmd ./cmd
COPY internal ./internal
COPY config.example.json ./config.example.json
RUN test -f ./cmd/mqqt-scrubber/main.go || (echo "cmd/mqqt-scrubber/main.go is missing from the Docker build context; verify the checkout, sparse-checkout settings, and build context path" >&2; exit 1)
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/mqqt-scrubber ./cmd/mqqt-scrubber
FROM alpine:3.20