Няма описание

Dockerfile 573B

12345678910111213141516171819202122232425
  1. # Pull base image
  2. FROM python:3.11-slim
  3. # Set environment variables
  4. ENV PYTHONDONTWRITEBYTECODE 1
  5. ENV PYTHONUNBUFFERED 1
  6. # Set work directory
  7. WORKDIR /app
  8. # Install system dependencies: Node.js/npm and Graphviz toolchain for ER diagrams
  9. RUN apt-get update \
  10. && apt-get install -y --no-install-recommends \
  11. nodejs npm \
  12. graphviz libgraphviz-dev \
  13. build-essential pkg-config \
  14. && rm -rf /var/lib/apt/lists/*
  15. # Install dependencies
  16. COPY requirements.txt /app/
  17. RUN pip install --no-cache-dir -r requirements.txt
  18. # Copy project
  19. COPY . /app/