Update Dockerfile
Browse files123445678910111213141516FROM node:16 as builder
WORKDIR /buildRUN git clone https://github.com/MartialBE/one-hub.git .#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' > VERSION
RUN 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