forked from fiberize/fiberize
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (18 loc) · 876 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
FROM ubuntu:15.10
MAINTAINER Paweł Nowak pawel@livetalk.lol
RUN apt-get update
# Install build tools.
RUN apt-get install -y build-essential automake libtool g++ git cmake
# Install boost.
RUN apt-get install -y libboost-dev libboost-context-dev libboost-thread-dev libboost-system-dev
# Install and compile google test.
RUN apt-get install -y libgtest-dev && cd /usr/src/gtest && cmake . && make && cp lib*.a /usr/lib
# Install tlmalloc.
RUN apt-get install -y libgoogle-perftools-dev
# Install libuv.
COPY libuv/ /usr/src/libuv/
RUN cd /usr/src/libuv && sh autogen.sh && ./configure && make && make check && make install
# Build and install fiberize.
COPY fiberize/ /usr/src/fiberize/
RUN mkdir -p /tmp/build/fiberize && cd /tmp/build/fiberize && cmake /usr/src/fiberize/ -DCMAKE_BUILD_TYPE=Release && make -j8 && make -j8 test && make install
RUN rm -R /tmp/build