-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathDockerfile
29 lines (21 loc) · 1.01 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM ubuntu:22.04
COPY --from=onnxmlirczar/onnx-mlir:latest /usr/local/bin/ /usr/local/bin/
COPY --from=onnxmlirczar/onnx-mlir:latest /usr/local/lib/ /usr/local/lib/
COPY --from=onnxmlirczar/onnx-mlir:latest /usr/local/lib64/ /usr/local/lib64/
COPY --from=onnxmlirczar/onnx-mlir:latest /usr/local/include/ /usr/local/include/
RUN apt-get update \
&& apt-get install -y build-essential autoconf libtool pkg-config cmake git maven libssl-dev clang
ARG WORK_DIR=/workdir
WORKDIR ${WORK_DIR}
RUN git clone -b v1.57.0 https://github.com/grpc/grpc \
&& cd grpc; git submodule update --init \
&& cd grpc;mkdir -p cmake/build;cd cmake/build;cmake -DCMAKE_BUILD_TYPE=Release -DgRPC_SSL_PROVIDER=package ../.. \
&& cd grpc/cmake/build; make -j8;make install \
&& cd /workdir; rm -rf grpc
COPY . onnx-mlir-serving
RUN cd onnx-mlir-serving \
&& mkdir -p cmake/build; cd cmake/build \
&& cmake -DCMAKE_BUILD_TYPE=Release ../.. \
&& make -j8 \
&& rm -rf /root/.cache
ENTRYPOINT ["/bin/bash"]