blob: dca00bd4c4788c5f581fe17cb590359a39e55b18 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
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"]
|