Some checks are pending
build-images / api (push) Waiting to run
build-images / worker-gpu (push) Waiting to run
build-images / web (push) Waiting to run
codeql / Analyze (javascript-typescript) (push) Waiting to run
codeql / Analyze (python) (push) Waiting to run
perf / API hot-path micro-smoke (budgeted) (push) Waiting to run
perf / Desktop engine crates (release build check) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (comfy-workflow-schema) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (effects-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (eventbus-types) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (growth-analytics) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (trends-schema) (push) Waiting to run
vision2026-ci / API phase modules (ruff + pytest) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (provider-adapter-kit) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (publishing-connectors) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (render-core) (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (shot-template-schema) (push) Waiting to run
vision2026-ci / Python SDK resource tests (push) Waiting to run
vision2026-ci / Desktop engine crates (test + clippy + fmt) (push) Waiting to run
vision2026-ci / Alembic upgrade + drift check (push) Waiting to run
vision2026-ci / Shared packages (TS≡Python golden parity) (caption-engine) (push) Waiting to run
Paid, hosted product at menivor.com, now retired as a company project. Fresh squashed history of the cleaned working tree (secret-scanned, no .env, no customer data, no outreach logs). Built on MoneyPrinterTurbo (MIT, harry0703) — see NOTICE.
22 lines
1.5 KiB
Docker
22 lines
1.5 KiB
Docker
# Menivor Real-ESRGAN CPU sidecar (Wave P PM2.1, MH7). Built on box 1 or CI, never on the Mac.
|
|
# Licences: Real-ESRGAN BSD-3-Clause (xinntao/Real-ESRGAN), BasicSR Apache-2.0,
|
|
# PyTorch BSD-3-Clause. Weights: RealESRGAN_x4plus from the Real-ESRGAN v0.1.0 release (BSD-3-Clause).
|
|
FROM python:3.11-slim-bookworm
|
|
ENV PIP_NO_CACHE_DIR=1 PYTHONUNBUFFERED=1 OMP_NUM_THREADS=2
|
|
RUN apt-get update && apt-get install -y --no-install-recommends curl libgl1 libglib2.0-0 \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
RUN pip install --index-url https://download.pytorch.org/whl/cpu torch==2.5.1 torchvision==0.20.1 \
|
|
&& pip install realesrgan==0.3.0 basicsr==1.4.2 numpy==1.26.4 pillow==11.0.0 opencv-python-headless==4.10.0.84
|
|
# basicsr 1.4.2 imports a torchvision module that moved; point it at the new path.
|
|
RUN sed -i 's/from torchvision.transforms.functional_tensor import rgb_to_grayscale/from torchvision.transforms.functional import rgb_to_grayscale/' \
|
|
/usr/local/lib/python3.11/site-packages/basicsr/data/degradations.py
|
|
ARG WEIGHTS_URL=https://github.com/xinntao/Real-ESRGAN/releases/download/v0.1.0/RealESRGAN_x4plus.pth
|
|
ARG WEIGHTS_SHA256=4fa0d38905f75ac06eb49a7951b426670021be3018265fd191d2125df9d682f1
|
|
RUN mkdir -p /models && curl -fsSL "$WEIGHTS_URL" -o /models/RealESRGAN_x4plus.pth \
|
|
&& echo "$WEIGHTS_SHA256 /models/RealESRGAN_x4plus.pth" | sha256sum -c -
|
|
COPY server.py /app/server.py
|
|
USER nobody
|
|
EXPOSE 8090
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 CMD curl -fsS http://127.0.0.1:8090/healthz || exit 1
|
|
CMD ["python", "/app/server.py"]
|