Skip to content
This repository was archived by the owner on Dec 11, 2025. It is now read-only.

Commit fa08819

Browse files
committed
docs: added docker section in README.md
1 parent 2c19029 commit fa08819

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

README.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,20 @@ reporter:report()
171171
runner:done()
172172
```
173173

174+
### Running in Docker container
175+
176+
Building an image:
177+
178+
```shell
179+
docker build -t <your-image-name> .
180+
```
181+
182+
Run the container; notice that by default `/app` is the working directory; change it `Dockerfile` if you want to place your code in another directory.
183+
184+
```shell
185+
docker run -v $(pwd):/app --rm -it <your-image-name>
186+
```
187+
174188
## Configuration
175189

176190
There are the [options](https://github.com/dknight/laura/blob/main/src/Config.lua) that can be customized.
@@ -188,7 +202,7 @@ as in the configuration file.
188202

189203
Also, there are ["private" configuration fields](https://github.com/dknight/laura/blob/main/src/laura/Config.lua), which are not recommended to change, unless you know that you know what you are doing.
190204

191-
# Code coverage
205+
## Code coverage
192206

193207
Code coverage can be enabled in `.laurarc` configuration file. Or if you are
194208
using CLI flag `--coverage`. There are extra coverage reporters can be used,

0 commit comments

Comments
 (0)