PyxiLabs commited on
Commit
c3b9bc5
·
verified ·
1 Parent(s): c857a91

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -3
Dockerfile CHANGED
@@ -1,18 +1,21 @@
1
- FROM python:3.10-slim-buster
2
 
3
  WORKDIR /app
4
 
5
- COPY requirements.txt ollama.sh ollama.py ./
6
 
7
  RUN apt-get update && apt-get install -y curl netcat && \
8
  curl https://ollama.ai/install.sh | sh && \
9
  pip install --no-cache-dir -r requirements.txt && \
10
  chmod +x ollama.sh
11
 
 
 
12
  RUN mkdir -p /.ollama && chmod 777 /.ollama
13
 
14
  ENV PATH="/usr/local/bin:$PATH"
15
 
16
  EXPOSE 7860 11434
17
 
18
- ENTRYPOINT ["/app/ollama.sh"]
 
 
1
+ FROM node:18-slim
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt ollama.sh ollama.js ./
6
 
7
  RUN apt-get update && apt-get install -y curl netcat && \
8
  curl https://ollama.ai/install.sh | sh && \
9
  pip install --no-cache-dir -r requirements.txt && \
10
  chmod +x ollama.sh
11
 
12
+ RUN npm i cloudflared-tunnel
13
+
14
  RUN mkdir -p /.ollama && chmod 777 /.ollama
15
 
16
  ENV PATH="/usr/local/bin:$PATH"
17
 
18
  EXPOSE 7860 11434
19
 
20
+ ENTRYPOINT ["/app/ollama.sh"]
21
+ #CMD ["node", "ollama.js"]