intel-device-plugins-for-ku.../build/docker/intel-gpu-plugin.Dockerfile
Dmitry Rozhkov 1732a69e6b bump up Go lang version
The version 1.11 is required to use the latest features of the
`text/template` standard library (mutable variables in templates).
2018-10-04 10:19:23 +03:00

11 lines
319 B
Docker

FROM golang:1.11-alpine as builder
ARG DIR=/go/src/github.com/intel/intel-device-plugins-for-kubernetes
WORKDIR $DIR
COPY . .
RUN cd cmd/gpu_plugin; go install
RUN chmod a+x /go/bin/gpu_plugin
FROM alpine
COPY --from=builder /go/bin/gpu_plugin /usr/bin/intel_gpu_device_plugin
CMD ["/usr/bin/intel_gpu_device_plugin"]