Files
ingglish-hyperdope-gematria/packaging/quadlet/Containerfile.ubi9
T

40 lines
1.8 KiB
Docker

# Containerfile (RHEL 9 / UBI 9 Minimal)
# Rootless Podman OCI Container for current-events-isopsephic-exegesis daily 00:00 GMT pipeline
FROM registry.access.redhat.com/ubi9/ubi-minimal:latest
LABEL org.opencontainers.image.title="ingglish-isopsephic-exegesis" \
org.opencontainers.image.description="Daily 00:00 GMT Current-Events Ingglish AQ & Hyperdope-Gematria CI Pipeline" \
org.opencontainers.image.version="0.1.0" \
org.opencontainers.image.licenses="MIT"
# Pin container TZ strictly to UTC/GMT
ENV TZ=UTC \
CRON_TZ=UTC \
LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \
NODE_PATH=/opt/ingglish-exegesis/node_modules \
HERMES_SKIP_DICT_REBUILD=0
# Install Python 3, Node.js 20 AppStream, words (/usr/share/dict/words), curl, tar, xz
RUN microdnf module enable -y nodejs:20 && \
microdnf install -y python3 python3-pip nodejs words curl tar xz gzip findutils && \
microdnf clean all
# Create application and state directories
RUN mkdir -p /opt/ingglish-exegesis/scripts \
/usr/share/hermes/skills \
/workspace/ingglish-aq-archive
# Copy pre-vendored node_modules (ingglish + @ingglish/dictionary) for zero-network runtime
COPY vendor/node_modules /opt/ingglish-exegesis/node_modules
COPY scripts/collect_news_aq.py /opt/ingglish-exegesis/scripts/collect_news_aq.py
COPY scripts/ci_provision_ingglish.py /opt/ingglish-exegesis/scripts/ci_provision_ingglish.py
COPY skills/ /usr/share/hermes/skills/
RUN chmod 0755 /opt/ingglish-exegesis/scripts/collect_news_aq.py \
/opt/ingglish-exegesis/scripts/ci_provision_ingglish.py
WORKDIR /workspace
ENTRYPOINT ["/usr/bin/python3", "/opt/ingglish-exegesis/scripts/collect_news_aq.py"]
CMD ["--mode", "closing-bell", "--archive-dir", "/workspace/ingglish-aq-archive", "--workdir", "/opt/ingglish-exegesis"]