quantumtaskai-caprover/Dockerfile.dokploy
thecyberlearn ce841c7ec1 Add Dokploy deployment configuration
- Add dokploy.json configuration file
- Create Dockerfile.dokploy optimized for port 3000
- Add environment variables template for Dokploy
- Update Django settings for Dokploy auto-detection

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

Co-Authored-By: Claude <noreply@anthropic.com>
2025-09-05 02:40:02 +05:30

29 lines
650 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 3000 for Dokploy
EXPOSE 3000
# Start gunicorn on port 3000
CMD ["gunicorn", "netcop_hub.wsgi:application", "--bind", "0.0.0.0:3000"]