Update Dockerfile
Browse files12345678910111213FROM node:16 as builderWORKDIR /buildRUN git clone https://github.com/MartialBE/one-hub.git .RUN wget -qO- -t1 -T2 "https://api.github.com/repos/MartialBE/one-hub/releases" | \grep "tag_name" | \head -n 1 | \awk -F ":" '{print $2}' | \sed 's/\"//g;s/,//g;s/ //g' > VERSIONRUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.goRUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/api/v1|g' /build/relay/common.go12345678910111213141516FROM node:16 as builderWORKDIR /build#RUN git clone https://github.com/MartialBE/one-hub.git .RUN git clone -b 0.14.3 https://github.com/MartialBE/one-hub.git .RUN wget -qO- -t1 -T2 "https://api.github.com/repos/MartialBE/one-hub/releases" | \grep "tag_name" | \head -n 1 | \awk -F ":" '{print $2}' | \sed 's/\"//g;s/,//g;s/ //g' > VERSIONRUN sed -i'' 's|router.Group("/v1|router.Group("/api/v1|g' /build/router/relay-router.goRUN sed -i'' 's|HasPrefix(path, "/v1|HasPrefix(path, "/api/v1|g' /build/relay/common.go
Dockerfile+4-1