mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-10-28 07:41:27 +00:00
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>
16 lines
554 B
Docker
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"]
|