| # debian.sh --arch 'amd64' out/ 'trixie' '@1779062400' |
| /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:3daa48156d6810d2047efc02c299c4465b2bcb2cbb864c3cfa9e0b99386c2e05 in /usr/local/bin/portal |
| COPY dir:28840eed5fbe85f4b1527bd373c6259868e3af82bfbd57f073ee25e0f9c65c38 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"] |