aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorCharlie Blake2018-10-13 11:30:59 +0100
committerGitHub2018-10-13 11:30:59 +0100
commit4d753cae81470f9db4d4827655a487778b4e854c (patch)
treeb6bb5b1be498db262817112a0da5dd9d54c3a2f3 /Dockerfile
parentMerge pull request #94 from thecharlesblake/canfield-fix (diff)
parentAdd docker to project (diff)
downloadmetasol-4d753cae81470f9db4d4827655a487778b4e854c.tar.gz
metasol-4d753cae81470f9db4d4827655a487778b4e854c.zip

Merge pull request #95 from thecharlesblake/docker

Add docker to project

Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile31
1 files changed, 31 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..7a63b5b
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,31 @@
+FROM ubuntu:18.04
+
+WORKDIR /home/Solvitaire/
+
+COPY . /home/Solvitaire/
+
+RUN apt-get update \
+&& apt-get install -y \
+gcc-6 \
+cmake \
+libboost-all-dev \
+git \
+python3 \
+vim \
+parallel
+
+RUN cmake [-G "CodeBlocks - Unix Makefiles"] \
+-DCMAKE_BUILD_TYPE=RELEASE \
+-Bcmake-build-release -H. \
+&& cmake [-G "CodeBlocks - Unix Makefiles"] \
+-DCMAKE_BUILD_TYPE=DEBUG \
+-Bcmake-build-debug -H.
+
+RUN cmake --build cmake-build-release \
+&& cmake --build cmake-build-debug
+
+WORKDIR /home/
+RUN mv /home/Solvitaire/ /home/.install/
+WORKDIR /home/Solvitaire/
+
+CMD /bin/bash