File tree Expand file tree Collapse file tree 3 files changed +12
-12
lines changed
Expand file tree Collapse file tree 3 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -6,12 +6,12 @@ ARG BASE_IMG="atom"
66
77
88# Stage 1: build code, both backend and frontend
9- FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} as builder
9+ FROM ${BASE_NAMESPACE:+$BASE_NAMESPACE/}${BASE_IMG_BUILD} AS builder
1010
1111COPY work/clash /opt/utils/
1212
1313RUN set -eux && source /opt/utils/script-setup-clash.sh \
14- && setup_clash && setup_clash_metacubexd && setup_clash_verge \
14+ && setup_clash && setup_clash_metacubexd && setup_clash_zashboard \
1515 && mv /opt/utils/config.yaml /opt/clash/config \
1616 && mv /opt/utils/start-clash.sh /opt/clash/
1717
Original file line number Diff line number Diff line change @@ -34,14 +34,14 @@ setup_clash_metacubexd() {
3434 && mv /tmp/xd/dist /opt/clash/ui-xd
3535}
3636
37- setup_clash_verge () {
38- # Install the latest release: https://clash-verge-rev. github.io/index.html
39- VER_VERGE =$( curl -sL https://github.com/clash-verge-rev/clash-verge-rev /releases.atom | grep ' releases/tag/v' | head -1 | grep -Po ' \d[\d.]+' ) \
40- && URL_VERGE =" https://github.com/clash-verge-rev/clash-verge-rev /archive/refs/tags/v$VER_VERGE .tar.gz" \
41- && echo " Downloading clash-verge version ${VER_VERGE } from: ${URL_VERGE } " \
42- && install_tar_gz $URL_VERGE \
43- && mv /opt/clash-verge- * /tmp/verge && cd /tmp/verge \
37+ setup_clash_zashboard () {
38+ # Install the latest release: https://github.com/Zephyruso/zashboard
39+ VER_ZASHBOARD =$( curl -sL https://github.com/Zephyruso/zashboard /releases.atom | grep ' releases/tag/v' | head -1 | grep -Po ' \d[\d.]+' ) \
40+ && URL_ZASHBOARD =" https://github.com/Zephyruso/zashboard /archive/refs/tags/v$VER_ZASHBOARD .tar.gz" \
41+ && echo " Downloading zashboard version ${VER_ZASHBOARD } from: ${URL_ZASHBOARD } " \
42+ && install_tar_gz $URL_ZASHBOARD \
43+ && mv /opt/zashboard- * /tmp/zashboard && cd /tmp/zashboard \
4444 && jq ' .homepage = "./ui"' package.json > tmp.$$ .json && mv tmp.$$ .json package.json \
45- && npx pnpm i && npx pnpm run web: build && ls -alh \
46- && mv /tmp/verge /dist /opt/clash/ui-verge
45+ && npx pnpm i && npx pnpm run build && ls -alh \
46+ && mv /tmp/zashboard /dist /opt/clash/ui-zashboard
4747}
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ setup_jupyter_hub() {
108108 && pip install -Uq oauthenticator jupyterhub-ldapauthenticator jupyterhub-kerberosauthenticator \
109109 && pip install -Uq dockerspawner jupyterhub-kubespawner jupyterhub-systemdspawner wrapspawner \
110110 && pip install -Uq psutil pycurl jupyter_client jupyterhub \
111- && pip install -Uq jupyterhub-traefik-proxy
111+ && pip install -Uq jupyterhub-traefik-proxy configurable-http-proxy
112112
113113 type jupyterhub && echo " @ JupyterHub version: $( jupyterhub --version) " || return -1 ;
114114}
You can’t perform that action at this time.
0 commit comments