Skip to content

Commit 41beee7

Browse files
authored
Update Dockfile for update protobuf version for validation
1 parent ee69a2a commit 41beee7

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

docker/cpu/Dockerfile

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
88
RUN apt update
99
RUN apt install -y tzdata
1010

11+
RUN git clone https://github.com/Microsoft/vcpkg.git && \
12+
./vcpkg/bootstrap-vcpkg.sh && \
13+
vcpkg integrate install && \
14+
vcpkg install protobuf[zlib] --triplet x64-linux
1115

1216
RUN apt-get update && apt-get install -y --no-install-recommends \
1317
build-essential \
@@ -33,10 +37,10 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
3337
libleveldb-dev \
3438
liblmdb-dev \
3539
libopencv-dev \
36-
libprotobuf-dev \
40+
#libprotobuf-dev \
41+
#protobuf-compiler \
3742
libsnappy-dev \
38-
libmatio-dev \
39-
protobuf-compiler && \
43+
libmatio-dev && \
4044
rm -rf /var/lib/apt/lists/*
4145

4246
ENV CAFFE_ROOT=/opt/caffe
@@ -60,7 +64,7 @@ RUN git clone https://github.com/foss-for-synopsys-dwc-arc-processors/synopsys-c
6064
pip3 install --upgrade pip && \
6165
cd python && for req in $(cat requirements.txt) pydot; do pip3 install $req; done && cd .. && \
6266
mkdir build && cd build && \
63-
cmake -DCPU_ONLY=1 .. && \
67+
cmake -DCMAKE_TOOLCHAIN_FILE=../../vcpkg/scripts/buildsystems/vcpkg.cmake -DCPU_ONLY=1 .. && \
6468
make -j"$(nproc)" && \
6569
make runtest && \
6670
make pycaffe

0 commit comments

Comments
 (0)