bentebbutt commited on
Commit
164ad30
·
verified ·
1 Parent(s): e4fc497

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -5
Dockerfile CHANGED
@@ -52,12 +52,14 @@ COPY --chown=pn backend backend
52
  COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
53
  RUN ls -a
54
 
55
- # Prepare the entrypoint script
56
- COPY --chown=pn run.sh run.sh
 
57
  RUN ls -a
58
- RUN chmod +x run.sh
 
59
 
60
- # Expose the port 8080 for the backend, and 8000 for FastAPI
61
  EXPOSE 8080 8000
62
 
63
- CMD ["bash", "run.sh"]
 
52
  COPY --chown=pn nginx.conf /etc/nginx/sites-available/default
53
  RUN ls -a
54
 
55
+ # Prepare the entrypoint scripts
56
+ COPY --chown=pn start_ollama.sh start_ollama.sh
57
+ COPY --chown=pn start_app.sh start_app.sh
58
  RUN ls -a
59
+ RUN chmod +x start_ollama.sh
60
+ RUN chmod +x start_app.sh
61
 
62
+ # Expose the port 11434 for ollama, 8080 for the backend, and 8000 for FastAPI
63
  EXPOSE 8080 8000
64
 
65
+ CMD ["bash", "start_ollama.sh"]