mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 05:02:07 +00:00
setup agent runtime requirements (#7)
This commit is contained in:
parent
5d97c33d7e
commit
e75b3f98a6
17 changed files with 424 additions and 28 deletions
|
|
@ -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).
|
||||
|
|
|
|||
15
apps/node-agent/Dockerfile
Normal file
15
apps/node-agent/Dockerfile
Normal 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"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue