| # debian.sh --arch 'amd64' out/ 'trixie' '@1782172800' |
| /bin/sh -c apt-get update && apt-get install -y --no-install-recommends ca-certificates curl && rm -rf /var/lib/apt/lists/* |
| /bin/sh -c useradd --system --uid 10001 --user-group --no-create-home --shell /usr/sbin/nologin portal |
| WORKDIR /app |
| COPY file:e81ed1465ec736db6dd6f20e5ba73fd8ce550450add7331131f890a071bc8f74 in /usr/local/bin/portal |
| COPY dir:ef6b85fe7a4b4de59cf10d5ac12f9dcda3790620dffcaf2cdd194a37e2b9bbe4 in /app/static |
| ENV PORTAL_BIND_HOST=0.0.0.0 PORTAL_BIND_PORT=8080 PORTAL_STATIC_DIR=/app/static RUST_LOG=info,portal=debug |
| EXPOSE 8080 |
| USER portal:portal |
| HEALTHCHECK --interval=30s --timeout=5s --start-period=10s --retries=3 CMD curl -sf http://127.0.0.1:8080/healthz | grep -q ok || exit 1 |
| ENTRYPOINT ["/usr/local/bin/portal"] |