diff --git a/Dockerfile b/Dockerfile index 81bfee0..220271a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,6 +8,6 @@ RUN npm install COPY . . -RUN tsc --build +RUN npm run build CMD node dist/index.js \ No newline at end of file diff --git a/package.json b/package.json index 5643a37..f30053a 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "main": "dist/index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "build": "tsc", + "build": "tsc --build", "start": "tsc && node ./dist/index.js", "dev": "tsc-watch --onSuccess \"node dist/index.js\"" },