Fix dockerfile

This commit is contained in:
Tim Ruffles
2019-12-19 17:18:03 +00:00
parent 5566323b92
commit 2349eb5872
2 changed files with 7 additions and 2 deletions

View File

@@ -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"]

3
run.sh Normal file
View File

@@ -0,0 +1,3 @@
cd /opt/humans.txt
node action.js $@