new build
Some checks failed
Build and Publish Docker Images / build-and-push (push) Failing after 11m20s
Test Docker Compose Setup / test-compose (push) Failing after 54s
Test Docker Compose Setup / lint-dockerfiles (push) Failing after 30s
Test Docker Compose Setup / validate-compose (push) Failing after 16s
Build and Publish Docker Images / security-scan (push) Has been skipped
Build and Publish Docker Images / notify (push) Failing after 15s

This commit is contained in:
2025-10-06 00:27:44 -04:00
parent 04aab1c460
commit e4aaee7ff0
2 changed files with 13 additions and 7 deletions

View File

@@ -5,10 +5,10 @@ FROM node:18-alpine
WORKDIR /app WORKDIR /app
# Copy package files # Copy package files
COPY package*.json ./ COPY package.json ./
# Install dependencies # Install dependencies (npm install works without package-lock.json)
RUN npm ci --only=production RUN npm install --omit=dev --no-audit --no-fund && npm cache clean --force
# Copy application code # Copy application code
COPY . . COPY . .

View File

@@ -125,21 +125,27 @@ docker stats
### Common Issues ### Common Issues
1. **Bot not connecting to Discord** 1. **Docker build fails with npm ci error**
```
npm error The `npm ci` command can only install with an existing package-lock.json
```
**Solution:** The Dockerfile uses `npm install` instead of `npm ci` to work without a lock file.
2. **Bot not connecting to Discord**
- Verify `DISCORD_TOKEN` is correct - Verify `DISCORD_TOKEN` is correct
- Check Discord bot permissions - Check Discord bot permissions
- Ensure bot is invited to the server - Ensure bot is invited to the server
2. **Backend not responding** 3. **Backend not responding**
- Verify `UPTIME_KUMA_URL` and `UPTIME_KUMA_API_KEY` - Verify `UPTIME_KUMA_URL` and `UPTIME_KUMA_API_KEY`
- Check Uptime Kuma instance accessibility - Check Uptime Kuma instance accessibility
- Test API endpoint manually: `curl http://localhost:8080/back-end.php` - Test API endpoint manually: `curl http://localhost:8080/back-end.php`
3. **Permission errors** 4. **Permission errors**
- Ensure Docker has proper permissions - Ensure Docker has proper permissions
- Check file ownership in mounted volumes - Check file ownership in mounted volumes
4. **Container health checks failing** 5. **Container health checks failing**
- Check logs: `docker-compose logs` - Check logs: `docker-compose logs`
- Verify all environment variables are set - Verify all environment variables are set
- Test individual services - Test individual services