19 lines
412 B
Docker
19 lines
412 B
Docker
FROM python:3.13-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
ENV LANG=C.UTF-8
|
|
ENV LC_ALL=C.UTF-8
|
|
|
|
# deps système
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
build-essential \
|
|
libpq-dev \
|
|
gcc \
|
|
&& rm -rf /var/cache/apt/archives /var/lib/apt/lists/*
|
|
|
|
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN pip install --upgrade pip
|
|
RUN pip install --no-cache-dir -r /app/requirements.txt |