fix(bots/discord): revert dist denesting, fixes config not found

This commit is contained in:
PalmDevs
2024-07-23 22:41:15 +07:00
parent 38e00eb4e5
commit 0d4898dae8
3 changed files with 3 additions and 3 deletions

View File

@@ -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" ]

View File

@@ -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

View File

@@ -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,