From 5e53d53545aeee258a6d1f73274ecf1e2c668bd0 Mon Sep 17 00:00:00 2001 From: "Marc J. Schmidt" Date: Wed, 2 Nov 2022 19:40:38 +0100 Subject: [PATCH] add docker setup to readme --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index af5ed5a..87f6135 100644 --- a/README.md +++ b/README.md @@ -210,11 +210,16 @@ $ git clone git@github.com:marcj/TypeRunner.git $ cd TypeRunner ``` -then make sure cmake and a C++ compiler is installed. We use LLVM toolchain per default. To build the project run the usual cmake command: +To compile using Docker: + +```sh +$ docker build -t typerunner -f Dockerfile . +$ docker run typerunner build/bench tests/objectLiterals1.ts +``` + +To compile natively use make sure cmake and a C++ compiler is installed. We use LLVM toolchain per default. To build the project run the usual cmake command: ```sh -$ git clone https://github.com/marcj/TypeRunner.git -$ cd TypeRunner $ git submodule update --init --recursive $ mkdir build $ cd build