From d98e59d060c2bba8f6bad6c9de11029b4901f73b 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 | 2 ++ package.json | 1 + 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4ed4115..af88600 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,8 @@ RUN apt-get update -qq && \ COPY --link package.json package-lock.json ./ RUN npm install --production=false +RUN npm run build + # Copy application code COPY --link . . 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": {