| FROM python:3.11-slim | |
| WORKDIR /app | |
| COPY smishing_detector/requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt && pip install gunicorn huggingface_hub | |
| COPY smishing_detector/ ./smishing_detector/ | |
| WORKDIR /app/smishing_detector | |
| ENV SCAMSHIELD_DEBUG=false | |
| ENV SCAMSHIELD_HOST=0.0.0.0 | |
| ENV SCAMSHIELD_PORT=7860 | |
| COPY entrypoint.sh /app/entrypoint.sh | |
| RUN chmod +x /app/entrypoint.sh | |
| CMD ["/app/entrypoint.sh"] | |