Skip to content

Commit 86a515a

Browse files
committed
Use better dockerfile
1 parent 77fc881 commit 86a515a

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ ENV PATH="/app/.venv/bin:$PATH"
2626

2727
ENTRYPOINT []
2828

29+
EXPOSE 8000
2930

30-
# Run the API server
31-
CMD ["uv", "run", "agent-memory", "api"]
31+
HEALTHCHECK --interval=30s --timeout=10s --start-period=40s --retries=3 \
32+
CMD curl -f http://localhost:8000/health || exit 1
33+
34+
# Disable auth by default. Can be overridden with environment variable.
35+
ENV DISABLE_AUTH=true
36+
37+
CMD ["agent-memory", "api", "--host", "0.0.0.0", "--port", "8000"]

0 commit comments

Comments
 (0)