1
0
mirror of https://github.com/rancher/steve.git synced 2025-07-07 03:49:01 +00:00
steve/Dockerfile

11 lines
283 B
Docker
Raw Normal View History

2019-08-04 17:41:32 +00:00
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
2019-08-04 17:43:02 +00:00
ENTRYPOINT ["/usr/bin/naok"]