summaryrefslogblamecommitdiffstats
path: root/Dockerfile
blob: dca00bd4c4788c5f581fe17cb590359a39e55b18 (plain) (tree)
1
2
3
4
5
6
7
8

                     
                       

            

                       
 




                                          
 

                                                  
 
                                              
 
           
 
                
                                                                  
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"]