bentebbutt commited on
Commit
1d363ef
1 Parent(s): 387b280

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -4
Dockerfile CHANGED
@@ -22,6 +22,10 @@ RUN chown -R pn:pn /var/cache/nginx \
22
  /var/log/nginx/error.log \
23
  /usr/share/nginx/html
24
 
 
 
 
 
25
  # Switch back to the 'pn' user for installing dependencies and building the app
26
  USER pn
27
  ENV HOME=/home/pn \
@@ -45,10 +49,6 @@ COPY --chown=pn backend backend
45
  COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
46
  RUN ls -a
47
 
48
- # Install ollama and pull the phi3 model
49
- RUN curl -fsSL https://ollama.com/install.sh | sh
50
- RUN ollama pull phi3
51
-
52
  # Prepare the entrypoint script
53
  COPY --chown=pn run.sh run.sh
54
  RUN ls -a
 
22
  /var/log/nginx/error.log \
23
  /usr/share/nginx/html
24
 
25
+ # Install ollama and pull the phi3 model as the root user
26
+ RUN curl -fsSL https://ollama.com/install.sh | sh
27
+ RUN ollama pull phi3
28
+
29
  # Switch back to the 'pn' user for installing dependencies and building the app
30
  USER pn
31
  ENV HOME=/home/pn \
 
49
  COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
50
  RUN ls -a
51
 
 
 
 
 
52
  # Prepare the entrypoint script
53
  COPY --chown=pn run.sh run.sh
54
  RUN ls -a