quantumtaskai-caprover/Dockerfile.captain
thecyberlearn 9261d73d4f Complete project standardization and cleanup
MAJOR CLEANUP:
- Remove ALL backup files and duplicate variants (*-simple, *.backup)
- Standardize requirements.txt to 11 essential dependencies (vs 24)
- Clean settings.py: remove middleware/cache/Redis dependencies
- Simplify Dockerfile.captain: essential features only
- Replace 2 deployment guides with 1 clean DEPLOYMENT_GUIDE.md
- Fix broken imports in authentication, agents, wallet modules

RESULT:
- One clean standard version of everything
- No more confusion between simple/complex variants
- Essential dependencies only
- Standard Django configuration
- Ready for straightforward CapRover deployment
- All imports working correctly

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-04 13:54:30 +05:30

29 lines
616 B
Docker

FROM python:3.11-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y \
gcc \
libpq-dev \
&& 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 environment variables
ENV PYTHONUNBUFFERED=1 \
SECRET_KEY="build-time-dummy-key-change-in-production"
# Collect static files
RUN python manage.py collectstatic --noinput
# Expose port
EXPOSE 80
# Start gunicorn
CMD ["gunicorn", "netcop_hub.wsgi:application", "--bind", "0.0.0.0:80"]