-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathDockerfile
More file actions
30 lines (23 loc) · 713 Bytes
/
Dockerfile
File metadata and controls
30 lines (23 loc) · 713 Bytes
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
30
FROM rikorose/gcc-cmake:gcc-10
WORKDIR /lib
RUN curl https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.7.1%2Bcpu.zip -o /lib/libtorch.zip \
&& unzip libtorch.zip \
&& rm libtorch.zip
RUN wget https://github.com/google/googletest/archive/release-1.10.0.zip \
&& unzip release*.zip \
&& mv googletest*/ googletest/ \
&& rm release*.zip
RUN cd /lib/googletest \
&& cmake . \
&& make
COPY src/ /lib/src/
RUN mkdir build
COPY arch.make.docker /lib/arch.make
COPY utils/Makefile /lib/build/
RUN cd build && make -j
COPY test/ /lib/test/
COPY models/ /lib/models/
RUN cd /lib/test/gtest/ && make docker
WORKDIR /lib/test/gtest/
# Set the CMD to your handler
CMD [ "./run_all.x" ]