From e77fc4a5ea83aaef0fcc7e3a01bc670d78abbf20 Mon Sep 17 00:00:00 2001 From: Advaith Date: Mon, 10 Aug 2020 00:57:51 -0700 Subject: [PATCH] docker pls x2 --- Dockerfile | 2 +- package.json | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a0b4345..602632b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,6 +4,6 @@ RUN apk update && apk add git ca-certificates COPY . . RUN mv settings.example.json settings.json RUN npm i --production -RUN tsc-transpile-only +RUN npm run prod RUN rm -rf src/ @types/ settings.json CMD ["npm", "start"] diff --git a/package.json b/package.json index cf62d98..cdf5e1e 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "node-sass": "^4.14.1" }, "scripts": { + "prod": "tsc-transpile-only", "compile": "rm -rf dist/ && tsc", "start": "node dist/src/app", "pm2": "pm2 start dist/src/app.js --name 'DEL'",