| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| TOKENIZERS_PARALLELISM=false \ | |
| HOST=0.0.0.0 \ | |
| PORT=7860 | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libglib2.0-0 libgl1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY services/poketwo-classifier-service/requirements.txt services/poketwo-classifier-service/requirements.txt | |
| RUN python -m pip install --no-cache-dir --upgrade pip \ | |
| && python -m pip install --no-cache-dir -r services/poketwo-classifier-service/requirements.txt | |
| COPY scripts/poketwo-classifier.py scripts/poketwo-classifier.py | |
| COPY services/poketwo-classifier-service services/poketwo-classifier-service | |
| EXPOSE 7860 | |
| CMD ["python", "services/poketwo-classifier-service/app.py"] | |