| # debian.sh --arch 'amd64' out/ 'trixie' '@1791158400' |
| LABEL eu.lorebase.project=tirakan-autobattler |
| RUN /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* && useradd --system --home-dir /app --shell /usr/sbin/nologin thron # buildkit |
| WORKDIR /app |
| COPY /out/tt_server /app/tt_server # buildkit |
| COPY /out/web/dist/ /app/web/dist/ # buildkit |
| COPY /out/git_commit_hash.txt /app/ # buildkit |
| COPY content/ /app/content/ # buildkit |
| ENV TT_BIND=0.0.0.0:7878 TT_CONTENT_DIR=/app/content TT_WEB_DIR=/app/web/dist RUST_LOG=info,sqlx=warn |
| USER thron |
| EXPOSE [7878/tcp] |
| HEALTHCHECK {Test:[CMD-SHELL curl --fail --silent http://localhost:7878/health >/dev/null || exit 1] Interval:10s Timeout:5s StartPeriod:10s StartInterval:0s Retries:3} |
| CMD ["/app/tt_server"] |