Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +4 -1
Dockerfile
CHANGED
|
@@ -8,7 +8,10 @@ RUN apt-get update && apt-get install -y curl && apt install -y procps && rm -rf
|
|
| 8 |
# Install Ollama
|
| 9 |
RUN curl -fsSL https://ollama.com/install.sh | bash
|
| 10 |
ENV PATH="/root/.ollama/bin:$PATH"
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
| 12 |
RUN ollama serve & sleep 5 && ollama pull mannix/defog-llama3-sqlcoder-8b:latest && echo "Done. Stop Ollama..." && pkill ollama
|
| 13 |
COPY requirements.txt ./
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
|
|
|
| 8 |
# Install Ollama
|
| 9 |
RUN curl -fsSL https://ollama.com/install.sh | bash
|
| 10 |
ENV PATH="/root/.ollama/bin:$PATH"
|
| 11 |
+
RUN useradd -m -u 1000 user
|
| 12 |
+
USER user
|
| 13 |
+
ENV HOME=/home/user PATH="/home/user/.local/bin:$PATH"
|
| 14 |
+
WORKDIR $HOME/app
|
| 15 |
RUN ollama serve & sleep 5 && ollama pull mannix/defog-llama3-sqlcoder-8b:latest && echo "Done. Stop Ollama..." && pkill ollama
|
| 16 |
COPY requirements.txt ./
|
| 17 |
RUN pip install --no-cache-dir -r requirements.txt
|