From 33124fc8aa8e361a834d50aeb8b946a307546a72 Mon Sep 17 00:00:00 2001 From: soapintheeye Date: Thu, 7 Dec 2023 14:40:43 +0100 Subject: [PATCH] run build to fix failing deploy - https://github.com/opiruyan/BalanceBot/actions/runs/7120116760/job/19386694249 - Error: Cannot find module '/app/build/Bot.js' - cos /build is created by compiling TS code --- Dockerfile | 1 + package.json | 1 + 2 files changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ed4115..754e30b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,6 +29,7 @@ COPY --link . . # Remove development dependencies RUN npm prune --production +RUN npm run build # Final stage for app image diff --git a/package.json b/package.json index 7a77235..195b70b 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "scripts": { "build": "tsc", "dev": "node ./build/Bot.js", + "start": "node ./build/Bot.js", "test": "jest" }, "dependencies": {