| 12345678910111213141516171819202122 |
- # Pull base image
- FROM python:3.11-slim
- # Set environment variables
- ENV PYTHONDONTWRITEBYTECODE 1
- ENV PYTHONUNBUFFERED 1
- # Set work directory
- WORKDIR /app
- # Install Node.js and npm
- RUN apt-get update \
- && apt-get install -y --no-install-recommends nodejs npm \
- && rm -rf /var/lib/apt/lists/*
- # Install dependencies
- COPY requirements.txt /app/
- RUN pip install --no-cache-dir -r requirements.txt
- # Copy project
- COPY . /app/
|