Spaces:
Runtime error
Runtime error
Download Dockerfile from sm6342/Yourmemory: direct link, hf CLI and curl.
- Browser
- Download file 913 Bytes
-
https://huggingface.co/spaces/sm6342/Yourmemory/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/sm6342/Yourmemory/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/sm6342/Yourmemory/resolve/main/Dockerfile
913 Bytes
| FROM python:3.11-slim | |
| LABEL io.modelcontextprotocol.server.name="io.github.sachitrafa/yourmemory" | |
| ENV PYTHONIOENCODING=utf-8 \ | |
| PYTHONDONTWRITEBYTECODE=1 \ | |
| PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| curl \ | |
| && curl -fsSL https://deb.nodesource.com/setup_20.x | bash - \ | |
| && apt-get install -y nodejs \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN pip install --no-cache-dir yourmemory && \ | |
| python -m spacy download en_core_web_sm && \ | |
| python -c "from sentence_transformers import SentenceTransformer; SentenceTransformer('multi-qa-mpnet-base-dot-v1')" | |
| RUN mkdir -p /root/.yourmemory | |
| COPY server-card.json /app/server-card.json | |
| COPY proxy.js /app/proxy.js | |
| RUN npm install http-proxy | |
| EXPOSE 8000 | |
| CMD ["sh", "-c", "npx -y supergateway --stdio 'yourmemory --stdio' --port 3100 & sleep 5 && node /app/proxy.js"] | |