2021-03-30 09:16:11 +07:00
|
|
|
FROM cubetiq/calpine-node:latest
|
|
|
|
LABEL maintainer="sombochea@cubetiqs.com"
|
|
|
|
|
|
|
|
VOLUME [ "/app/data" ]
|
|
|
|
|
2021-03-30 12:31:21 +07:00
|
|
|
ENV INPUT_FILE './data/source.xlsx'
|
2021-03-30 09:16:11 +07:00
|
|
|
ENV OUTPUT_PATH './data/outputs'
|
|
|
|
ENV MAPPER_FILE './data/mapper.json'
|
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . /app
|
|
|
|
|
2021-03-30 12:04:18 +07:00
|
|
|
RUN npm install
|
2021-03-30 09:16:11 +07:00
|
|
|
|
2021-03-30 12:04:18 +07:00
|
|
|
RUN npm link
|
|
|
|
|
2021-03-30 12:13:41 +07:00
|
|
|
RUN ln -s $(which excel2json-xlsx) /usr/bin/x2j
|
|
|
|
|
|
|
|
ENTRYPOINT [ "/usr/bin/x2j"]
|
|
|
|
|
|
|
|
CMD [ "--help" ]
|