Add fsnotify handling

This commit is contained in:
2024-07-28 18:32:58 +02:00
parent 1a6de9b64f
commit 6a43bf1e10
5 changed files with 31 additions and 9 deletions

15
Containerfile Normal file
View File

@@ -0,0 +1,15 @@
FROM golang:alpine as builder
ENV CGO_ENABLED 0
RUN go env -w GOCACHE=/go-cache
RUN go env -w GOMODCACHE=/gomod-cache
COPY . /build
WORKDIR /build
RUN --mount=type=cache,target=/gomod-cache --mount=type=cache,target=/go-cache go build -o test ./cmd
FROM scratch
COPY --from=builder /build/test /
ENTRYPOINT ["./test"]