-
Notifications
You must be signed in to change notification settings - Fork 11
/
Dockerfile
34 lines (28 loc) · 917 Bytes
/
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
FROM ubuntu:15.10
MAINTAINER Lachlan McCalman <[email protected]>
RUN apt-get update && apt-get install -y \
build-essential \
cmake \
libeigen3-dev \
libzmq3-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-filesystem-dev \
libboost-regex-dev \
libboost-coroutine-dev \
libboost-thread-dev \
libboost-date-time-dev \
libboost-context-dev \
libgtest-dev
ENV BUILD_DIR=/tmp/stateline LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib
RUN mkdir -p /stateline /usr/local/src/stateline /usr/local/src/stateline/tools /tmp/build
COPY ./tools /usr/local/src/stateline/tools
COPY . /usr/local/src/stateline/
RUN mkdir /usr/local/build
WORKDIR /usr/local/build
RUN cmake /usr/local/src/stateline -DCMAKE_BUILD_TYPE=Release -DLOCAL_INSTALL=OFF \
&& make \
&& make install \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
WORKDIR /stateline
EXPOSE 5555 5556