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'",