You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

17 lines
455 B
Docker

FROM rust as builder
RUN apt-get update
RUN apt-get install ocl-icd-opencl-dev -y
COPY . .
RUN cargo build --release
FROM golang as builder2
RUN go get github.com/parallel-programming-hwr/http-exec
FROM nvidia/opencl:devel-ubuntu18.04
WORKDIR benchmark
COPY --from=builder2 /go/bin/http-exec .
RUN apt-get update
COPY --from=builder target/release/rust-opencl-demo .
ENV PATH="${PATH}:/benchmark"
ENTRYPOINT ["./http-exec","--command=rust-opencl-demo"]