mirror of
https://github.com/thecyberlearn/quantumtaskai-caprover.git
synced 2026-08-18 07:52:55 +00:00
Add debug configuration for Dokploy 404 troubleshooting
- Switch to debug Dockerfile with detailed logging - Add Dockerfile.test for basic container functionality test - Enable debug mode to see detailed startup logs - This will help identify where the 404 error is coming from
This commit is contained in:
parent
98cc088518
commit
7a51dca243
39
Dockerfile.test
Normal file
39
Dockerfile.test
Normal file
@ -0,0 +1,39 @@
|
||||
FROM python:3.11-slim
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Install system dependencies
|
||||
RUN apt-get update && apt-get install -y \
|
||||
gcc \
|
||||
libpq-dev \
|
||||
curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Copy and install Python dependencies
|
||||
COPY requirements.txt .
|
||||
RUN pip install --no-cache-dir -r requirements.txt
|
||||
|
||||
# Copy application code
|
||||
COPY . .
|
||||
|
||||
# Set minimal environment variables
|
||||
ENV PYTHONUNBUFFERED=1 \
|
||||
DEBUG=true \
|
||||
SECRET_KEY="test-secret-key-123456789" \
|
||||
ALLOWED_HOSTS="*"
|
||||
|
||||
# Expose port 3000
|
||||
EXPOSE 3000
|
||||
|
||||
# Very simple test - just run a basic HTTP server
|
||||
CMD echo "🧪 TEST MODE - Container is running!" && \
|
||||
echo "📋 Environment Check:" && \
|
||||
echo " - Python: $(python --version)" && \
|
||||
echo " - Django: $(python -c 'import django; print(django.get_version())')" && \
|
||||
echo " - Working directory: $(pwd)" && \
|
||||
echo " - Files: $(ls -la | head -10)" && \
|
||||
echo "" && \
|
||||
echo "🌐 Testing Django..." && \
|
||||
python manage.py check --settings=netcop_hub.settings && \
|
||||
echo "✅ Django OK - Starting simple HTTP server on port 3000" && \
|
||||
python -m http.server 3000
|
||||
@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "quantum-tasks-ai",
|
||||
"type": "dockerfile",
|
||||
"dockerfile": "./Dockerfile.dokploy",
|
||||
"dockerfile": "./Dockerfile.dokploy.debug",
|
||||
"port": 3000,
|
||||
"healthCheck": "/health/",
|
||||
"buildArgs": {},
|
||||
"buildOptions": ["--no-cache"],
|
||||
"env": {
|
||||
"PYTHONUNBUFFERED": "1",
|
||||
"DEBUG": "false",
|
||||
"SECRET_KEY": "build-time-dummy-key-change-in-production",
|
||||
"DEBUG": "true",
|
||||
"SECRET_KEY": "debug-key-change-in-production-123456789",
|
||||
"ALLOWED_HOSTS": "*"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user