# Pull official base imageFROM python:3.12-slim# Set environment variablesENV PYTHONDONTWRITEBYTECODE 1ENV PYTHONUNBUFFERED 1ENV DJANGO_SETTINGS_MODULE charity_pro.settings # Properly set DJANGO_SETTINGS_MODULE to point to your settings module# Set working directoryWORKDIR /app# Install dependenciesCOPY requirements.txt /app/RUN pip install --upgrade pipRUN pip install -r requirements.txt# Copy project filesCOPY . /app/# Install daphne (no need for gunicorn)RUN pip install daphne# Expose the dynamic port (optional)EXPOSE 8000# Use the environment variable $PORT for deploymentCMD ["sh", "-c", "daphne -b 0.0.0.0 -p $PORT charity_pro.asgi:application"]