diff --git a/Dockerfile b/Dockerfile index 7a8e878..86f75ca 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,5 +37,8 @@ RUN pip install -U --no-cache-dir pytesseract RUN apk del .dev-deps RUN rm -f /usr/local/lib/*.a RUN rm -rf /tmp/* /var/cache/apk/* +RUN apk add jq +RUN apk add sed +RUN apk add nodejs WORKDIR /opt diff --git a/array-to-lines.js b/array-to-lines.js new file mode 100644 index 0000000..b5d4e51 --- /dev/null +++ b/array-to-lines.js @@ -0,0 +1,5 @@ +const input = process.argv[2]; +const array = JSON.parse(input); +for (let i in array) { + console.log(array[i]); +}