Files
bux-lang/examples/docker/Dockerfile.nexus
T
dimgigov a785747c37
ci / build (ubuntu) (push) Has been cancelled
ci / macos smoke (push) Has been cancelled
ci / windows smoke (push) Has been cancelled
selfhost-loop / bootstrap determinism (push) Has been cancelled
ci / unit + fmt (push) Has been cancelled
ci / examples (push) Has been cancelled
ci / goldens + tools (push) Has been cancelled
ci / apps (push) Has been cancelled
ci / selfhost smoke (push) Has been cancelled
ci / CI gate (push) Has been cancelled
feat: Linux/cloud platform stack (TLS, registry, static/cross, selfhost PM)
Ship the QUALITY_PLAN platform focus: thin/minimal runtime, --static/--target,
Nexus HTTPS/mTLS with graceful stop, lock checksums + install --locked,
selfhost registry (search/add/HTTP), containers, and CI smokes for cloud path.
2026-07-23 23:00:55 +03:00

27 lines
844 B
Docker

# Session 78 — Nexus in a slim runtime image (dynamic link: pthread + OpenSSL).
#
# From repo root (after building apps/nexus/build/nexus on Linux):
# docker build -f examples/docker/Dockerfile.nexus -t bux-nexus .
# docker run --rm -p 8080:8080 bux-nexus
#
# HTTPS:
# docker run --rm -p 8443:8443 \
# -v $PWD/certs:/certs:ro \
# -e NEXUS_PORT=8443 -e NEXUS_TLS=1 \
# -e NEXUS_TLS_CERT=/certs/cert.pem -e NEXUS_TLS_KEY=/certs/key.pem \
# bux-nexus
FROM debian:bookworm-slim
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates libssl3 \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY apps/nexus/build/nexus /app/nexus
COPY apps/nexus/public /app/public
ENV NEXUS_BIND=0.0.0.0
ENV NEXUS_PORT=8080
ENV NEXUS_WORKERS=4
ENV NEXUS_ACCESS_LOG=1
EXPOSE 8080
ENTRYPOINT ["/app/nexus"]