mirror of
https://github.com/ModernRelay/omnigraph.git
synced 2026-06-21 02:28:07 +02:00
Initial public Omnigraph repository
This commit is contained in:
commit
338289656a
110 changed files with 60747 additions and 0 deletions
25
Dockerfile
Normal file
25
Dockerfile
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
FROM debian:bookworm-slim
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends ca-certificates curl \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
RUN groupadd --system omnigraph \
|
||||
&& useradd --system --gid omnigraph --create-home --home-dir /var/lib/omnigraph omnigraph
|
||||
|
||||
COPY target/release/omnigraph-server /usr/local/bin/omnigraph-server
|
||||
COPY docker/entrypoint.sh /usr/local/bin/omnigraph-entrypoint
|
||||
|
||||
RUN chmod 0755 /usr/local/bin/omnigraph-server /usr/local/bin/omnigraph-entrypoint
|
||||
|
||||
ENV OMNIGRAPH_BIND=0.0.0.0:8080
|
||||
|
||||
WORKDIR /var/lib/omnigraph
|
||||
USER omnigraph:omnigraph
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 \
|
||||
CMD curl -fsS http://127.0.0.1:8080/healthz >/dev/null || exit 1
|
||||
|
||||
ENTRYPOINT ["/usr/local/bin/omnigraph-entrypoint"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue