diff options
| author | chblake | 2018-10-13 00:22:26 +0100 |
|---|---|---|
| committer | chblake | 2018-10-13 11:27:48 +0100 |
| commit | 661b6f9309009c4ccf061fa3dfce001a68280180 (patch) | |
| tree | b6bb5b1be498db262817112a0da5dd9d54c3a2f3 /Dockerfile | |
| parent | Merge pull request #94 from thecharlesblake/canfield-fix (diff) | |
| download | metasol-661b6f9309009c4ccf061fa3dfce001a68280180.tar.gz metasol-661b6f9309009c4ccf061fa3dfce001a68280180.zip | |
Add docker to project
Diffstat (limited to 'Dockerfile')
| -rw-r--r-- | Dockerfile | 31 |
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 |
