-
Notifications
You must be signed in to change notification settings - Fork 13
/
Dockerfile
41 lines (33 loc) · 1.03 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
FROM ubuntu:20.04
ARG GRB_VERSION=9.1.2
ARG GRB_SHORT_VERSION=9.1
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt-get install --no-install-recommends -y\
ca-certificates \
libglpk-dev \
glpk-utils \
coinor-libcbc-dev \
coinor-cbc \
libprotobuf-dev \
libzip-dev \
protobuf-compiler \
make \
cmake \
wget \
g++ \
git \
&& update-ca-certificates \
&& wget -q https://packages.gurobi.com/${GRB_SHORT_VERSION}/gurobi${GRB_VERSION}_linux64.tar.gz \
&& tar -xf gurobi${GRB_VERSION}_linux64.tar.gz \
&& rm -f gurobi${GRB_VERSION}_linux64.tar.gz \
&& mv -f gurobi* gurobi \
&& rm -rf gurobi/linux64/docs
ENV GUROBI_HOME /opt/gurobi/linux64
ENV PATH $PATH:$GUROBI_HOME/bin:/loom/build
ENV LD_LIBRARY_PATH $GUROBI_HOME/lib
RUN git clone --recurse-submodules https://github.com/ad-freiburg/loom /loom
ENV GRB_LICENSE_FILE /gurobi/gurobi.lic
RUN cd /loom && rm -rf build && mkdir build && cd build && cmake .. && make -j20 install
WORKDIR /
CMD loom