From b7333cc184072489660542dd07166d2ba4cc1707 Mon Sep 17 00:00:00 2001 From: Sambo Chea Date: Tue, 30 Mar 2021 12:13:41 +0700 Subject: [PATCH] Updated the entry point --- Dockerfile | 6 +++++- entrypoint.sh | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 entrypoint.sh diff --git a/Dockerfile b/Dockerfile index 0758ae2..4d1dd52 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,8 @@ RUN npm install RUN npm link -CMD [ "excel2json-xlsx" , "--help"] \ No newline at end of file +RUN ln -s $(which excel2json-xlsx) /usr/bin/x2j + +ENTRYPOINT [ "/usr/bin/x2j"] + +CMD [ "--help" ] \ No newline at end of file diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..413dd0e --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +excel2json-xlsx \ No newline at end of file