| FROM python:3.9-slim | |
| RUN apt update | |
| RUN apt install -y git | |
| RUN git clone https://github.com/snailyp/vecmul-reverse.git /app | |
| WORKDIR "app" | |
| RUN sed -i 's|/v1/chat/completions|/hf/v1/chat/completions|g' vecmul_service.py &&\ | |
| sed -i 's|/v1/models|/hf/v1/models|g' vecmul_service.py | |
| #RUN mkdir -p /app/data | |
| #RUN chmod -R 777 /app/data | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| EXPOSE 8002 | |
| CMD ["uvicorn", "vecmul_service:app", "--host", "0.0.0.0", "--port", "8002"] |