| FROM python:3.12-slim | |
| WORKDIR /app | |
| # Install system dependencies and git | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| build-essential \ | |
| libssl-dev \ | |
| libffi-dev \ | |
| python3-dev \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Install Python packages (including protobuf_decoder) | |
| RUN pip install --no-cache-dir \ | |
| flask \ | |
| requests \ | |
| pycryptodome \ | |
| protobuf \ | |
| "protobuf-decoder" # <-- install this | |
| # Clone your repo | |
| RUN git clone https://github.com/reaperofssa/ffinfoattempt.git . | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run your app | |
| CMD ["python", "index.py"] |