FROM python:3.11-slim # Set working directory WORKDIR /app # Copy application code COPY . /app # Install system dependencies RUN apt-get update && apt-get install -y \ libpq-dev \ gcc \ && rm -rf /var/lib/apt/lists/* # Install Python dependencies RUN pip install --no-cache-dir -r requirements.txt ENV DJANGO_SETTINGS_MODULE=conf.settings.local EXPOSE 8000 # Start gunicorn CMD ["gunicorn", "ded.wsgi:application", "--bind", "0.0.0.0:8000"]