intel-device-plugins-for-ku.../build/docker/intel-fpga-admissionwebhook.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
360 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/fpga_admissionwebhook; go install
RUN chmod a+x /go/bin/fpga_admissionwebhook
FROM alpine
COPY --from=builder /go/bin/fpga_admissionwebhook /usr/bin/intel_fpga_admissionwebhook
CMD ["/usr/bin/intel_fpga_admissionwebhook"]