| FROM node:18-slim | |
| WORKDIR /app | |
| COPY requirements.txt ollama.sh ollama.js ./ | |
| RUN apt-get update && apt-get install -y curl netcat && \ | |
| curl https://ollama.ai/install.sh | sh && \ | |
| pip install --no-cache-dir -r requirements.txt && \ | |
| chmod +x ollama.sh | |
| RUN npm i cloudflared-tunnel | |
| RUN mkdir -p /.ollama && chmod 777 /.ollama | |
| ENV PATH="/usr/local/bin:$PATH" | |
| EXPOSE 7860 11434 | |
| ENTRYPOINT ["/app/ollama.sh"] | |
| #CMD ["node", "ollama.js"] |