GHCR: add arm platform, crash fixes (#3819)

* ghcr: add arm platform, remove attestation

* ghcr: checkout code to get version

* ghcr: fix tag var format

* docker: --no-tui flag for entrypoint

* docker: install ca-certificates to be able to use grin client inside container

* docker: add default volume, expose API port exposable by making IP address public
This commit is contained in:
ardocrat
2026-02-27 19:52:31 +03:00
committed by GitHub
parent 376c85bab5
commit c2abf1ecf0
2 changed files with 106 additions and 19 deletions
+7 -2
View File
@@ -14,17 +14,22 @@ FROM debian:trixie-slim
COPY --from=builder /usr/src/grin/target/release/grin /usr/local/bin/grin
RUN apt update && \
apt install -y libncursesw5-dev
apt install -y libncursesw5-dev && \
apt-get install -y ca-certificates && update-ca-certificates
# Create mainnet config
WORKDIR /root/.grin/main
RUN grin server config
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:3413"/' grin-server.toml
# Create testnet config
WORKDIR /root/.grin/test
RUN grin --testnet server config
RUN sed -i '/^run_tui /s/=.*$/= false/' grin-server.toml
RUN sed -i '/^api_http_addr /s/=.*$/= "0.0.0.0:13413"/' grin-server.toml
VOLUME ["/root/.grin"]
# Mainnet ports
EXPOSE 3413 3414
@@ -36,5 +41,5 @@ EXPOSE 13413 13414
EXPOSE 3416
WORKDIR /root/.grin
ENTRYPOINT ["grin"]
ENTRYPOINT ["grin", "--no-tui"]
CMD ["server", "run"]