Fix Docker build context
This commit is contained in:
@@ -2,5 +2,4 @@
|
||||
bin
|
||||
dist
|
||||
config.json
|
||||
mqqt-scrubber
|
||||
docs/All connections.json
|
||||
+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
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
version: "3.8"
|
||||
|
||||
services:
|
||||
mqqt-scrubber:
|
||||
build:
|
||||
|
||||
Reference in New Issue
Block a user