Aethel Bot OSS repository! aethel.xyz
bot fun ai discord discord-bot aethel
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: dockerfile doesn't have a working healtcheck

+7 -2
+3 -2
Dockerfile
··· 63 63 ENV VITE_FRONTEND_URL=${VITE_FRONTEND_URL} 64 64 ENV VITE_DISCORD_CLIENT_ID=${VITE_DISCORD_CLIENT_ID} 65 65 66 - RUN groupadd -g 1001 nodejs && \ 66 + RUN apt-get update && apt-get install -y curl && rm -rf /var/lib/apt/lists/* && \ 67 + groupadd -g 1001 nodejs && \ 67 68 useradd -r -u 1001 -g nodejs aethel 68 69 69 70 WORKDIR /app ··· 88 89 EXPOSE 2020 89 90 90 91 HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \ 91 - CMD ps aux | grep node | grep -v grep || exit 1 92 + CMD curl -f http://localhost:2020/health || exit 1 92 93 93 94 CMD ["bun", "run", "start"]
+4
src/index.ts
··· 82 82 83 83 app.use('/api/status', authenticateApiKey, status(bot)); 84 84 85 + app.get('/health', (req, res) => { 86 + res.status(200).json({ status: 'ok', timestamp: new Date().toISOString() }); 87 + }); 88 + 85 89 app.use(e.static('web/dist')); 86 90 87 91 app.get('*', (req, res) => {