13 lines
260 B
Docker
13 lines
260 B
Docker
|
FROM library/golang:1.18-bullseye as builder
|
||
|
|
||
|
WORKDIR /src
|
||
|
COPY . .
|
||
|
|
||
|
# TODO: Add cross compiling and multiple binary distributions.
|
||
|
RUN go build cmd/ledger-tui/ledger-tui.go
|
||
|
|
||
|
FROM scratch
|
||
|
|
||
|
COPY --from=builder /src/ledger-tui /ledger-tui
|
||
|
ENTRYPOINT /ledger-tui
|