Add dockerfile
This commit is contained in:
Родитель
24ccfc3019
Коммит
cc55b39469
|
@ -0,0 +1,2 @@
|
|||
node_modules
|
||||
npm-debug.log
|
|
@ -0,0 +1,17 @@
|
|||
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++
|
||||
|
||||
RUN apt-get update && apt-get install build-essential libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev
|
||||
|
||||
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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче