Application Uptime Check - GO Agent

This commit is contained in:
headlessdev
2025-04-12 16:45:01 +02:00
parent 2c29d3f16f
commit 9a3a36ab7c
4 changed files with 328 additions and 0 deletions

25
agent/Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
# --- Build Stage ---
FROM golang:1.21-alpine AS builder
WORKDIR /app
ENV GO111MODULE=on
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN go build -o app .
# --- Run Stage ---
FROM alpine:latest
RUN apk --no-cache add ca-certificates
WORKDIR /root/
COPY --from=builder /app/app .
CMD ["./app"]