Brak opisu

Dockerfile 591B

1234567891011121314151617181920212223242526
  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. gettext \
  15. && rm -rf /var/lib/apt/lists/*
  16. # Install dependencies
  17. COPY requirements.txt /app/
  18. RUN pip install --no-cache-dir -r requirements.txt
  19. # Copy project
  20. COPY . /app/