mirror of
https://github.com/harivansh-afk/betterNAS.git
synced 2026-04-15 14:03:48 +00:00
Keep the NAS-side runtime bounded to the configured export path, make WebDAV and registration behavior env-driven, and add runtime coverage so the first storage loop can be verified locally. Generated with [Devin](https://cli.devin.ai/docs) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
17 lines
393 B
Docker
17 lines
393 B
Docker
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
|
|
RUN apk add --no-cache ca-certificates
|
|
COPY --from=build /out/node-agent /usr/local/bin/node-agent
|
|
ENV BETTERNAS_NODE_LISTEN_ADDRESS=:8090
|
|
|
|
EXPOSE 8090
|
|
CMD ["node-agent"]
|