mirror of
https://github.com/rancher/steve.git
synced 2025-07-15 23:46:34 +00:00
11 lines
276 B
Docker
11 lines
276 B
Docker
|
FROM golang:1.12 as build
|
||
|
COPY go.mod go.sum main.go /src/
|
||
|
COPY vendor /src/vendor/
|
||
|
COPY pkg /src/pkg/
|
||
|
RUN cd /src && \
|
||
|
CGO_ENABLED=0 go build -ldflags "-extldflags -static -s" -o /naok -mod=vendor
|
||
|
|
||
|
FROM alpine
|
||
|
COPY --from=build /naok /usr/bin/naok
|
||
|
CMD ["/usr/bin/naok"]
|