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
-1
View File
@@ -2,5 +2,4 @@
bin bin
dist dist
config.json config.json
mqqt-scrubber
docs/All connections.json docs/All connections.json
+4 -1
View File
@@ -5,7 +5,10 @@ WORKDIR /src
COPY go.mod go.sum ./ COPY go.mod go.sum ./
RUN go mod download 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 RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /out/mqqt-scrubber ./cmd/mqqt-scrubber
FROM alpine:3.20 FROM alpine:3.20
-2
View File
@@ -1,5 +1,3 @@
version: "3.8"
services: services:
mqqt-scrubber: mqqt-scrubber:
build: build: