- Dockerfile +3 -1
Dockerfile
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
#FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04
|
| 2 |
FROM ubuntu:latest
|
| 3 |
WORKDIR /app
|
| 4 |
-
COPY .
|
| 5 |
# Update the package list and install curl
|
| 6 |
RUN apt-get update & apt-get install -y curl wget build-essential git tar gzip htop micro
|
| 7 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
@@ -10,7 +10,9 @@ RUN touch /.gitconfig & chmod 777 /.gitconfig
|
|
| 10 |
ENV OLLAMA_MODELS=/.ollama/model
|
| 11 |
ENV OLLAMA_HOST=0.0.0.0
|
| 12 |
ENV OLLAMA_ORIGINS="[*]"
|
|
|
|
| 13 |
EXPOSE 7860
|
| 14 |
EXPOSE 11434
|
| 15 |
|
|
|
|
| 16 |
CMD ollama serve && sleep 45 & ollama pull codellama:13b & ollama pull starcoder2:15b & ollama pull wizardlm-uncensored:latest & ollama pull tinyllama:1.1b & ollama pull llama2-uncensored:latest & ollama pull qwen3-embedding:0.6b & ollama pull embeddinggemma:latest
|
|
|
|
| 1 |
#FROM nvidia/cuda:12.8.0-cudnn-devel-ubuntu22.04
|
| 2 |
FROM ubuntu:latest
|
| 3 |
WORKDIR /app
|
| 4 |
+
COPY --chown=user . /app
|
| 5 |
# Update the package list and install curl
|
| 6 |
RUN apt-get update & apt-get install -y curl wget build-essential git tar gzip htop micro
|
| 7 |
RUN curl -fsSL https://ollama.com/install.sh | sh
|
|
|
|
| 10 |
ENV OLLAMA_MODELS=/.ollama/model
|
| 11 |
ENV OLLAMA_HOST=0.0.0.0
|
| 12 |
ENV OLLAMA_ORIGINS="[*]"
|
| 13 |
+
ENV OLLAMA_API_KEY=$OLLAMA_API
|
| 14 |
EXPOSE 7860
|
| 15 |
EXPOSE 11434
|
| 16 |
|
| 17 |
+
|
| 18 |
CMD ollama serve && sleep 45 & ollama pull codellama:13b & ollama pull starcoder2:15b & ollama pull wizardlm-uncensored:latest & ollama pull tinyllama:1.1b & ollama pull llama2-uncensored:latest & ollama pull qwen3-embedding:0.6b & ollama pull embeddinggemma:latest
|