fathos82 commited on
Commit
758c70c
·
verified ·
1 Parent(s): 3034273

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -14
Dockerfile CHANGED
@@ -1,25 +1,21 @@
1
- FROM nvidia/cuda:12.1.0-base-ubuntu22.04
2
 
3
  USER root
4
- RUN apt-get update && apt-get install -y \
5
- curl \
6
- bash \
7
- libatomic1 \
8
- && rm -rf /var/lib/apt/lists/*
9
-
10
- RUN mkdir -p /workspace/mount && \
11
  chmod -R 777 /workspace && \
12
  useradd -m -u 1000 user
13
 
 
 
 
 
 
 
14
  USER 1000
15
  ENV HOME=/home/user \
16
  PATH=/home/user/.local/bin:$PATH
17
 
18
- RUN curl -fsSL https://lmstudio.ai/install.sh | bash
19
-
20
- ENV PATH="/home/user/.lmstudio/bin:$PATH"
21
-
22
- WORKDIR /workspace
23
  EXPOSE 7860
24
 
25
- CMD ["sh", "-c", "lms daemon up && lms server start --port 7860 --cors=*"]
 
1
+ FROM ubuntu:22.04
2
 
3
  USER root
4
+ RUN apt-get update && apt-get install -y curl && \
5
+ mkdir -p /workspace && \
 
 
 
 
 
6
  chmod -R 777 /workspace && \
7
  useradd -m -u 1000 user
8
 
9
+ # Instala Ollama
10
+ RUN curl -fsSL https://ollama.ai/install.sh | bash
11
+
12
+ # Instala Open WebUI
13
+ RUN pip install open-webui
14
+
15
  USER 1000
16
  ENV HOME=/home/user \
17
  PATH=/home/user/.local/bin:$PATH
18
 
 
 
 
 
 
19
  EXPOSE 7860
20
 
21
+ CMD ["sh", "-c", "ollama serve & open-webui serve --port 7860"]