From 6d4fe598afe2e7085569c6f26934fa2f3dd91ea2 Mon Sep 17 00:00:00 2001 From: Saul Ivan Rivas Vega Date: Mon, 1 Sep 2025 19:36:10 +0200 Subject: [PATCH] feat: update Dockerfile --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a9b193..00e49ca 100644 --- a/README.md +++ b/README.md @@ -44,10 +44,16 @@ The file must use ECMAScript modules (ESM) syntax and have the `.mjs` file exten ### Using the docker image -You can also use the published docker image and run your tests (assuming a `mytest.mjs` in this example) in a pre-configured environment: +You can also use the published docker image and run the example: ```bash -docker run -it -v ./mytest.mjs:/bmssp-js/mytest.mjs sirivasv/bmssp-js:latest node /bmssp-js/mytest.mjs +docker run -it sirivasv/bmssp-js:latest +``` + +Or your tests in a pre-configured environment (replace `folder-mytest/` with your tests folder and `index.mjs` with your test file): + +```bash +docker run -it -v ./folder-mytest/:/bmssp-js/folder-mytest/ sirivasv/bmssp-js:latest node /bmssp-js/folder-mytest/index.mjs ``` Other versions of the docker image can be found on [Docker Hub](https://hub.docker.com/r/sirivasv/bmssp-js/tags).