Files
Dash/infra/Dockerfile.agent
Tomas DvorakandDevin a89a81d46c docs+release: Phase 4 launch artifacts
README hero with real screenshots, install/config/widget docs, goreleaser
for dash + dash-agent, GHCR release workflow, changelog, community files,
agent systemd unit and Dockerfile, version stamping via -X main.version.

Generated with [Devin](https://devin.ai)

Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-09-21 19:39:21 +02:00

16 lines
554 B
Docker

# syntax=docker/dockerfile:1
# Minimal dash-agent image. A containerized agent only sees its own /proc —
# run with --pid=host and -v /proc:/host/proc for host metrics, or prefer the
# systemd unit in packaging/.
FROM golang:1.27-alpine AS build
WORKDIR /src
COPY apps/backend/go.mod apps/backend/go.sum ./
RUN go mod download
COPY apps/backend ./
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/dash-agent ./cmd/dash-agent
FROM gcr.io/distroless/static-debian12
COPY --from=build /out/dash-agent /dash-agent
ENTRYPOINT ["/dash-agent"]