feat: add production scripts and better Dockerfile

Closes: #710
Signed-off-by: Jef LeCompte <jeffreylec@gmail.com>
This commit is contained in:
Jef LeCompte
2020-11-07 09:26:17 -05:00
parent 42ef7cfdce
commit 0d14500d5d
2 changed files with 6 additions and 2 deletions
+3 -1
View File
@@ -32,6 +32,8 @@ WORKDIR /app
COPY --from=builder /build/node_modules/ node_modules/
COPY --from=builder /build/build/ build/
COPY package.json package.json
COPY version.txt version.txt
CMD [ "node", "./build/index.js" ]
ENTRYPOINT ["npm", "run"]
CMD ["start:production"]