1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- FROM golang:alpine as builder
- RUN apk update && apk add --no-cache git
- LABEL maintainer="Matthias Ladkau <matthias@ladkau.de>"
- WORKDIR /app
- COPY go.mod go.sum ./
- RUN go mod download
- COPY . .
- RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags="-w -s" cli/eliasdb.go
- FROM scratch
- COPY --from=builder /app/eliasdb /eliasdb
- WORKDIR /data
- ENTRYPOINT ["../eliasdb"]
|