Spaces:
Build error
Build error
Update Dockerfile
Browse files- 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
|
| 56 |
-
COPY --chown=pn
|
|
|
|
| 57 |
RUN ls -a
|
| 58 |
-
RUN chmod +x
|
|
|
|
| 59 |
|
| 60 |
-
# Expose the port 8080 for the backend, and 8000 for FastAPI
|
| 61 |
EXPOSE 8080 8000
|
| 62 |
|
| 63 |
-
CMD ["bash", "
|
|
|
|
| 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"]
|