diff --git a/Dockerfile b/Dockerfile index 0a29ca3..f9e6783 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,9 @@ FROM node:12 -COPY . . +WORKDIR /opt/humans.txt + +COPY . /opt/humans.txt RUN npm i --production -ENTRYPOINT ["node" , "action.js"] +ENTRYPOINT ["bash", "/opt/humans.txt/run.sh"] diff --git a/run.sh b/run.sh new file mode 100644 index 0000000..a2c6303 --- /dev/null +++ b/run.sh @@ -0,0 +1,3 @@ +cd /opt/humans.txt + +node action.js $@ \ No newline at end of file