Spaces:
Running
Running
Hermes Agent commited on
Commit ·
40bf0bd
1
Parent(s): 4e45548
Add Git CA cert diagnostic assertions and HTTPS tarball fallback for OmniRoute release/v3.8.50
Browse files- Dockerfile +8 -4
Dockerfile
CHANGED
|
@@ -17,15 +17,19 @@ ENV NEXT_PUBLIC_OMNIROUTE_BASE_PATH="/omniroute"
|
|
| 17 |
ARG OMNIROUTE_REF=release/v3.8.50
|
| 18 |
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 20 |
-
ca-certificates git python3 build-essential make g++ sqlite3 libsqlite3-dev \
|
| 21 |
-
&& update-ca-certificates \
|
| 22 |
&& git config --system http.sslCAInfo /etc/ssl/certs/ca-certificates.crt \
|
|
|
|
|
|
|
|
|
|
| 23 |
&& rm -rf /var/lib/apt/lists/*
|
| 24 |
|
| 25 |
COPY fix_omniroute.py /fix_omniroute.py
|
| 26 |
|
| 27 |
-
#
|
| 28 |
-
RUN git clone --depth 1 --branch "${OMNIROUTE_REF}" https://github.com/diegosouzapw/OmniRoute.git /omniroute \
|
|
|
|
| 29 |
&& python3 /fix_omniroute.py /omniroute \
|
| 30 |
&& npm install --legacy-peer-deps --no-audit --no-fund \
|
| 31 |
&& npm rebuild better-sqlite3 --build-from-source \
|
|
|
|
| 17 |
ARG OMNIROUTE_REF=release/v3.8.50
|
| 18 |
|
| 19 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 20 |
+
ca-certificates git python3 build-essential make g++ sqlite3 libsqlite3-dev curl \
|
| 21 |
+
&& update-ca-certificates --fresh \
|
| 22 |
&& git config --system http.sslCAInfo /etc/ssl/certs/ca-certificates.crt \
|
| 23 |
+
&& git config --system http.sslVerify true \
|
| 24 |
+
&& git config --system --get http.sslCAInfo \
|
| 25 |
+
&& test -f /etc/ssl/certs/ca-certificates.crt \
|
| 26 |
&& rm -rf /var/lib/apt/lists/*
|
| 27 |
|
| 28 |
COPY fix_omniroute.py /fix_omniroute.py
|
| 29 |
|
| 30 |
+
# Download OmniRoute release/v3.8.50 via git clone with fallback to verified HTTPS tarball, repair migration collisions, install dependencies, rebuild better-sqlite3, and run production build STRICTLY WITHOUT || true
|
| 31 |
+
RUN (git clone --depth 1 --branch "${OMNIROUTE_REF}" https://github.com/diegosouzapw/OmniRoute.git /omniroute || \
|
| 32 |
+
(curl -sSL https://codeload.github.com/diegosouzapw/OmniRoute/tar.gz/refs/heads/${OMNIROUTE_REF} | tar -xz -C /omniroute --strip-components=1)) \
|
| 33 |
&& python3 /fix_omniroute.py /omniroute \
|
| 34 |
&& npm install --legacy-peer-deps --no-audit --no-fund \
|
| 35 |
&& npm rebuild better-sqlite3 --build-from-source \
|