Fix Docker build context
This commit is contained in:
+4
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user