Commit a4c33c03 authored by ale's avatar ale

Build a static binary

parent d06cdc88
Pipeline #4235 passed with stages
in 5 minutes and 8 seconds
FROM golang:1.12.9 AS build
ADD . /go/src/
WORKDIR /go/src/
RUN go build -o /float-dashboard .
RUN go build -tags netgo -o /float-dashboard . && strip /float-dashboard
FROM scratch
COPY --from=build /float-dashboard /
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment