forked from kdrakon/docker-clingo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (19 loc) · 694 Bytes
/
Copy pathDockerfile
File metadata and controls
24 lines (19 loc) · 694 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM debian:latest
ARG tag_version
RUN apt-get update && \
apt-get install -y git build-essential cmake bison re2c && \
apt-get clean && \
rm -rf /var/lib/apt/lists
RUN mkdir /opt/clingo
RUN cd /opt/clingo && \
git init && \
git remote add origin https://github.com/potassco/clingo.git && \
if test -z "$tag_version" ; \
then git fetch origin master && git pull origin master; \
else git fetch origin ${tag_version} && git pull origin ${tag_version}; \
fi && \
git submodule update --init --recursive
WORKDIR /opt/clingo
RUN cmake -H/opt/clingo -B/opt/clingo -DCMAKE_BUILD_TYPE=release && \
cmake --build /opt/clingo
ENV PATH $PATH:/opt/clingo/bin