diff --git a/bots/discord/Dockerfile b/bots/discord/Dockerfile index f5b2626..96ca47b 100644 --- a/bots/discord/Dockerfile +++ b/bots/discord/Dockerfile @@ -15,4 +15,4 @@ COPY --from=build /build/bots/discord/dist /app USER 1000:1000 -ENTRYPOINT [ "bun", "run", "index.js" ] +ENTRYPOINT [ "bun", "run", "src/index.js" ] diff --git a/bots/discord/docs/3_running_and_deploying.md b/bots/discord/docs/3_running_and_deploying.md index 6532ece..05a18e6 100644 --- a/bots/discord/docs/3_running_and_deploying.md +++ b/bots/discord/docs/3_running_and_deploying.md @@ -54,7 +54,7 @@ To deploy the bot, you'll need to: ```sh cd /usr/src/discord-bot - bun run index.js + bun run src/index.js ``` ## ⏭️ What's next diff --git a/bots/discord/scripts/build.ts b/bots/discord/scripts/build.ts index d1c4598..9fb15d6 100644 --- a/bots/discord/scripts/build.ts +++ b/bots/discord/scripts/build.ts @@ -9,7 +9,7 @@ await rm('./dist', { recursive: true }) logger.info('Building bot...') await Bun.build({ entrypoints: ['./src/index.ts'], - outdir: './dist', + outdir: './dist/src', target: 'bun', external: ['./config.js'], minify: true,