Spaces:
Running
Running
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| cmake \ | |
| build-essential \ | |
| curl \ | |
| ca-certificates \ | |
| libssl-dev \ | |
| libcurl4-openssl-dev \ | |
| python3 \ | |
| python3-pip \ | |
| python3-venv \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN git clone https://github.com/ggml-org/llama.cpp /llama.cpp && \ | |
| cmake -S /llama.cpp -B /llama.cpp/build \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| -DLLAMA_CURL=ON \ | |
| -DLLAMA_OPENSSL=ON && \ | |
| cmake --build /llama.cpp/build --config Release -j1 --target llama-server | |
| RUN mkdir -p /data /app/skills && chmod 777 /data | |
| RUN git clone https://github.com/austintgriffith/ethskills.git /app/skills/ethskills | |
| COPY requirements.txt /app/requirements.txt | |
| RUN python3 -m pip install --no-cache-dir -r /app/requirements.txt | |
| COPY app.py /app/app.py | |
| COPY run.sh /app/run.sh | |
| RUN chmod +x /app/run.sh | |
| EXPOSE 7860 | |
| CMD ["/app/run.sh"] |