Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -4
- start_service.sh +1 -1
Dockerfile
CHANGED
@@ -8,19 +8,22 @@ WORKDIR /code
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
#
|
11 |
-
|
|
|
|
|
|
|
12 |
|
13 |
#
|
14 |
-
|
15 |
|
16 |
#
|
17 |
COPY ./app /code/app
|
18 |
|
19 |
#
|
20 |
-
|
21 |
|
22 |
#
|
23 |
-
|
24 |
|
25 |
#
|
26 |
RUN chmod +x /code/start_service.sh
|
|
|
8 |
COPY ./requirements.txt /code/requirements.txt
|
9 |
|
10 |
#
|
11 |
+
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
12 |
+
|
13 |
+
#
|
14 |
+
USER root
|
15 |
|
16 |
#
|
17 |
+
COPY ./start_service.sh /code/start_service.sh
|
18 |
|
19 |
#
|
20 |
COPY ./app /code/app
|
21 |
|
22 |
#
|
23 |
+
RUN apt-get update && apt-get install -y sudo
|
24 |
|
25 |
#
|
26 |
+
# EXPOSE 11434
|
27 |
|
28 |
#
|
29 |
RUN chmod +x /code/start_service.sh
|
start_service.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/bin/sh
|
2 |
|
3 |
#
|
4 |
-
curl -fsSL https://ollama.com/install.sh | sh
|
5 |
|
6 |
# Start Ollama in the background
|
7 |
ollama serve &
|
|
|
1 |
#!/bin/sh
|
2 |
|
3 |
#
|
4 |
+
sudo curl -fsSL https://ollama.com/install.sh | sh
|
5 |
|
6 |
# Start Ollama in the background
|
7 |
ollama serve &
|