setup agent runtime requirements

This commit is contained in:
Harivansh Rathi 2026-04-01 04:36:36 +00:00
parent 5d97c33d7e
commit 016e0ee581
17 changed files with 424 additions and 28 deletions

View file

@ -12,4 +12,4 @@ It is intentionally small for now:
- `POST /api/v1/cloud-profiles/issue`
The request and response shapes must follow the contracts in
[`packages/contracts`](/home/rathi/Documents/GitHub/betterNAS/packages/contracts).
[`packages/contracts`](../../packages/contracts).

View file

@ -0,0 +1,15 @@
FROM golang:1.26-alpine AS build
WORKDIR /src
COPY apps/node-agent ./apps/node-agent
WORKDIR /src/apps/node-agent
RUN CGO_ENABLED=0 GOOS=linux go build -o /out/node-agent ./cmd/node-agent
FROM alpine:3.21
WORKDIR /app
COPY --from=build /out/node-agent /usr/local/bin/node-agent
EXPOSE 8090
CMD ["node-agent"]