Коммит
e8bfb0f1da
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
|
@ -0,0 +1,15 @@
|
|||
FROM node:14
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
libcairo2-dev \
|
||||
libjpeg-dev \
|
||||
libpango1.0-dev \
|
||||
libgif-dev \
|
||||
libpng-dev \
|
||||
build-essential \
|
||||
g++
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
10
README.md
10
README.md
|
@ -20,6 +20,16 @@ This project provides a tool to help implementers of the [SMART Health Card Fram
|
|||
|
||||
npm test
|
||||
|
||||
### Running in Docker
|
||||
|
||||
```json
|
||||
docker build -t health-cards-validation .
|
||||
|
||||
docker run --rm -it \
|
||||
-v /path/to/inputs:/inputs \
|
||||
health-cards-validation /bin/bash
|
||||
```
|
||||
|
||||
## Using the tool
|
||||
|
||||
To validate health card artefacts, use the `shc-validator.ts` script, or simply call `node .` from the package root directory, using the desired options:
|
||||
|
|
Загрузка…
Ссылка в новой задаче