cdnV2

git clone https://github.com/notamitgamer/cdnV2.git
· rebuilt hourlyOpen on GitHub
commit c5564d5bee4401c1005ad485a0d9f10597b910e0
parent 21824f4f0bc04aaf44b03f4d10ed3febc39a4791
Author: Amit Dutta <mail@amit.is-a.dev>
Date:   Wed, 16 Sep 2026 23:22:18 +0530

Update Dockerfile
Diffstat:
MDockerfile | 36+++++++++---------------------------
1 file changed, 9 insertions(+), 27 deletions(-)

diff --git a/Dockerfile b/Dockerfile @@ -1,40 +1,20 @@ -FROM node:24-bookworm-slim +FROM ghcr.io/imputnet/cobalt:11.5-47d8ccb AS cobalt -WORKDIR /opt/cobalt +FROM node:24-bookworm-slim -ENV PNPM_HOME="/pnpm" -ENV PATH="$PNPM_HOME:$PATH" +WORKDIR /app -# Install Python and build dependencies required by Cobalt +# Install Python and required system packages RUN apt-get update \ && apt-get install -y --no-install-recommends \ python3 \ python3-pip \ - python3-dev \ - git \ - build-essential \ && rm -rf /var/lib/apt/lists/* -# Enable Corepack -RUN corepack enable - -# Clone the exact Cobalt 11.5 release commit -RUN git clone https://github.com/imputnet/cobalt.git /opt/cobalt \ - && cd /opt/cobalt \ - && git checkout 47d8ccbc17aeeac6cb754c8b721c2148f007c103 - -# Install Cobalt dependencies from the complete workspace -RUN pnpm install --prod --frozen-lockfile - -# Deploy the Cobalt API together with its workspace dependencies -RUN pnpm deploy --filter=@imput/cobalt-api --prod /opt/cobalt-api - -# --------------------------------------------------------- -# FastAPI application -# --------------------------------------------------------- - -WORKDIR /app +# Copy the already-built Cobalt API from the official Cobalt image +COPY --from=cobalt /app /opt/cobalt-api +# Install FastAPI dependencies COPY requirements.txt . RUN pip3 install \ @@ -42,8 +22,10 @@ RUN pip3 install \ --break-system-packages \ -r requirements.txt +# Copy FastAPI application COPY app/ ./app/ +# Copy startup script COPY start.sh /start.sh RUN chmod +x /start.sh