File: Dockerfile

package info (click to toggle)
gdu 5.34.4-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,288 kB
  • sloc: makefile: 145
file content (15 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM docker.io/library/golang:1.25.5 as builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

COPY . .
RUN make build-static

FROM scratch

COPY --from=builder /app/dist/gdu /opt/gdu

ENTRYPOINT ["/opt/gdu"]