mitulagr2 commited on
Commit
1bc57e9
1 Parent(s): 008b348

Update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +4 -4
  2. 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
- ENTRYPOINT ["/bin/bash", "/code/start_service.sh"]
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
- sudo curl -fsSL https://ollama.com/install.sh | sh
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 &