Nav apraksta

Dockerfile 435B

12345678910111213141516171819202122
  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 Node.js and npm
  9. RUN apt-get update \
  10. && apt-get install -y --no-install-recommends nodejs npm \
  11. && rm -rf /var/lib/apt/lists/*
  12. # Install dependencies
  13. COPY requirements.txt /app/
  14. RUN pip install --no-cache-dir -r requirements.txt
  15. # Copy project
  16. COPY . /app/