Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +4 -4
- start_service.sh +1 -1
Dockerfile
CHANGED
@@ -1,9 +1,6 @@
|
|
1 |
#
|
2 |
FROM python:3.11
|
3 |
|
4 |
-
#
|
5 |
-
USER root
|
6 |
-
|
7 |
#
|
8 |
WORKDIR /code
|
9 |
|
@@ -22,11 +19,14 @@ COPY ./app /code/app
|
|
22 |
#
|
23 |
# EXPOSE 11434
|
24 |
|
|
|
|
|
|
|
25 |
#
|
26 |
RUN chmod +x /code/start_service.sh
|
27 |
|
28 |
# # Run .sh file
|
29 |
-
|
30 |
|
31 |
#
|
32 |
# CMD ["fastapi", "run", "app/main.py", "--port", "80"]
|
|
|
1 |
#
|
2 |
FROM python:3.11
|
3 |
|
|
|
|
|
|
|
4 |
#
|
5 |
WORKDIR /code
|
6 |
|
|
|
19 |
#
|
20 |
# EXPOSE 11434
|
21 |
|
22 |
+
#
|
23 |
+
USER root
|
24 |
+
|
25 |
#
|
26 |
RUN chmod +x /code/start_service.sh
|
27 |
|
28 |
# # Run .sh file
|
29 |
+
CMD ["/code/start_service.sh"]
|
30 |
|
31 |
#
|
32 |
# CMD ["fastapi", "run", "app/main.py", "--port", "80"]
|
start_service.sh
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
#!/bin/sh
|
2 |
|
3 |
#
|
4 |
-
|
5 |
|
6 |
# Start Ollama in the background
|
7 |
ollama serve &
|
|
|
1 |
#!/bin/sh
|
2 |
|
3 |
#
|
4 |
+
curl -fsSL https://ollama.com/install.sh | sh
|
5 |
|
6 |
# Start Ollama in the background
|
7 |
ollama serve &
|