-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
49 lines (43 loc) · 1.11 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
ca-certificates \
cmake \
curl \
git \
libcurl4-openssl-dev \
libgflags-dev \
unzip
WORKDIR /
RUN apt-get update && apt-get install -y \
libboost-dev \
libboost-test-dev \
libboost-program-options-dev \
libboost-filesystem-dev \
libboost-thread-dev \
libevent-dev \
automake \
libtool \
flex \
bison \
pkg-config \
libssl-dev \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /
RUN git clone https://github.com/apache/thrift.git ; \
cd thrift ; \
./bootstrap.sh ; \
./configure --with-cpp=yes --with-c_glib=no --with-java=no --with-ruby=no --with-erlang=no --with-go=no --with-nodejs=no ; \
make -j4 ; \
make install ; \
ldconfig ;
WORKDIR /
RUN curl https://download.pytorch.org/libtorch/cpu/libtorch-cxx11-abi-shared-with-deps-1.8.0%2Bcpu.zip --output libtorch.zip \
&& unzip libtorch.zip \
&& rm libtorch.zip
COPY . /app
WORKDIR /app
RUN make
ENV LD_LIBRARY_PATH /libtorch/lib:/usr/local/lib
RUN ldconfig
ENTRYPOINT [ "./hack.o" ]