Spaces:
Runtime error
Runtime error
Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -17,5 +17,9 @@ COPY requirements.txt ./
|
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
COPY . .
|
19 |
|
|
|
20 |
EXPOSE 8000
|
21 |
-
CMD
|
|
|
|
|
|
|
|
17 |
RUN pip install --no-cache-dir -r requirements.txt
|
18 |
COPY . .
|
19 |
|
20 |
+
|
21 |
EXPOSE 8000
|
22 |
+
HEALTHCHECK CMD curl --fail http://localhost:8000/health || exit 1
|
23 |
+
|
24 |
+
# ---- Entrypoint ----
|
25 |
+
CMD ["bash", "-c", "ollama serve & uvicorn main:app --host 0.0.0.0 --port 8000"]
|