# 1. Use a lightweight Python image FROM python:3.12-slim # 2. Environment settings ENV PYTHONUNBUFFERED=1 ENV PIP_NO_CACHE_DIR=1 # 3. Set working directory inside the container WORKDIR /app # 4. Copy and install dependencies first (better caching) COPY requirements.txt . RUN pip install -r requirements.txt # 5. Copy all your app files into the container COPY . . # 6. Set the default command to run your script ENTRYPOINT ["python", "job_suggestor.py"]