diff --git a/Dockerfile b/Dockerfile index 5fe448a..0c617ca 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 85f236d..3d32aac 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "type": "module", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", - "dev": "tsc-watch --onSuccess \"node dist/index.js\"" + "dev": "tsc-watch --onSuccess \"node dist/index.js\"", + "build": "tsc --build" }, "repository": { "type": "git",