forked from vgteam/vg
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (29 loc) · 968 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
35
36
37
38
FROM ubuntu:14.04
MAINTAINER Erik Garrison <[email protected]>
# Make sure the en_US.UTF-8 locale exists, since we need it for tests
RUN locale-gen en_US en_US.UTF-8 && dpkg-reconfigure locales
# Set up for make get-deps
RUN mkdir /app
WORKDIR /app
COPY Makefile /app/Makefile
# Install vg dependencies and clear the package index
RUN \
echo "deb http://archive.ubuntu.com/ubuntu trusty-backports main restricted universe multiverse" | sudo tee -a /etc/apt/sources.list && \
apt-get update && \
apt-get install -y \
build-essential \
gcc4.9 \
g++4.9 \
pkg-config \
jq/trusty-backports \
sudo && \
make get-deps && \
rm -rf /var/lib/apt/lists/*
# Move in all the other files
COPY . /app
# Build vg
RUN . ./source_me.sh && make -j8
# Make tests. We can't do it in parallel since it cleans up the test binary
RUN make test
ENV LD_LIBRARY_PATH=/app/lib
ENTRYPOINT ["/app/bin/vg"]