Files
archy/apps/qortal/Dockerfile
ssmithx 4cc625e4d1 fix(qortal): enforce settings and honour icon-grid prompt policy
Parse settings with jq and require explicit safe booleans before listeners start. Reject missing/malformed configuration and multiple JSON documents. Honour prompt_before_launch in the icon-grid flow and cover false, true and legacy absent flags.

Validation: 17 focused frontend tests, 4 Python guard tests, shell syntax checks, Qortal manifest preflight and diff check passed. Image rebuild and live-node lifecycle acceptance remain pending.
2026-10-21 13:48:23 +00:00

41 lines
2.1 KiB
Docker

# Qortal Core — rootless image built from the OFFICIAL upstream release jar.
#
# Upstream publishes no container image (only a Dockerfile that builds from
# source with Maven), so we take the released qortal.jar, verify its SHA-256
# against the digest GitHub records for the release asset, and run it on the
# Temurin 17 JRE upstream itself uses. Java, so the same Dockerfile builds
# amd64 and arm64.
#
# The same container also serves the companion status UI (ui/) with nginx on
# 12390, so the app stays one manifest and one container with no per-app
# companion code in the orchestrator.
#
# Build + push (bump both ARGs together; the digest is on the release page):
# podman build -t source.archipelago-foundation.org/lfg2025/qortal-core:6.1.9 apps/qortal
FROM docker.io/library/eclipse-temurin:17-jre
ARG QORTAL_VERSION=6.1.9
ARG QORTAL_SHA256=a5fbe763645a53995565c9cb93491e024384431ee29eee38a4146b6a13ed2e87
RUN set -eux; \
apt-get update; \
apt-get install -y --no-install-recommends curl ca-certificates nginx jq; \
rm -rf /var/lib/apt/lists/*; \
mkdir -p /usr/local/qortal /qortal; \
curl -fsSL -o /usr/local/qortal/qortal.jar \
"https://github.com/Qortal/qortal/releases/download/v${QORTAL_VERSION}/qortal.jar"; \
echo "${QORTAL_SHA256} /usr/local/qortal/qortal.jar" | sha256sum -c -; \
curl -fsSL -o /usr/local/qortal/log4j2.properties \
"https://raw.githubusercontent.com/Qortal/qortal/v${QORTAL_VERSION}/log4j2.properties"; \
chown -R 1000:100 /usr/local/qortal /qortal
COPY ui/nginx.conf /etc/qortal-ui/nginx.conf
COPY ui/index.html ui/qortal.png /usr/share/qortal-ui/
COPY start.sh /usr/local/bin/qortal-start
COPY health.sh /usr/local/bin/qortal-health
COPY validate-settings.sh /usr/local/bin/qortal-validate-settings
RUN chmod 0755 /usr/local/bin/qortal-start /usr/local/bin/qortal-health /usr/local/bin/qortal-validate-settings
# Same uid:gid as upstream's image. Rootless Podman maps container uid 1000
# to host 100999, which is the manifest's data_uid.
USER 1000:100
WORKDIR /qortal
EXPOSE 12390 12391 12392 12394 12380
ENTRYPOINT ["/usr/local/bin/qortal-start"]