mirror of
https://github.com/WJQSERVER-STUDIO/ghproxy.git
synced 2026-02-03 00:01:10 +08:00
22 lines
1.2 KiB
Docker
22 lines
1.2 KiB
Docker
FROM wjqserver/caddy:daily
|
|
|
|
ARG USER=WJQSERVER-STUDIO
|
|
ARG REPO=ghproxy
|
|
ARG APPLICATION=ghproxy
|
|
|
|
RUN mkdir -p /data/www
|
|
RUN mkdir -p /data/${APPLICATION}/config
|
|
RUN mkdir -p /data/${APPLICATION}/log
|
|
RUN wget -O /data/www/index.html https://raw.githubusercontent.com/${USER}/${REPO}/main/pages/index.html
|
|
RUN wget -O /data/www/favicon.ico https://raw.githubusercontent.com/${USER}/${REPO}/main/pages/favicon.ico
|
|
RUN wget -O /data/caddy/Caddyfile https://raw.githubusercontent.com/${USER}/${REPO}/main/caddyfile/release/Caddyfile
|
|
RUN VERSION=$(curl -s https://raw.githubusercontent.com/${USER}/${REPO}/main/DEV-VERSION) && \
|
|
wget -O /data/${APPLICATION}/${APPLICATION} https://github.com/${USER}/${REPO}/releases/download/$VERSION/${APPLICATION}
|
|
RUN wget -O /data/${APPLICATION}/config.yaml https://raw.githubusercontent.com/${USER}/${REPO}/main/config/config.yaml
|
|
RUN wget -O /data/${APPLICATION}/blacklist.json https://raw.githubusercontent.com/${USER}/${REPO}/main/config/blacklist.json
|
|
RUN wget -O /usr/local/bin/init.sh https://raw.githubusercontent.com/${USER}/${REPO}/main/init.sh
|
|
RUN chmod +x /data/${APPLICATION}/${APPLICATION}
|
|
RUN chmod +x /usr/local/bin/init.sh
|
|
|
|
CMD ["/usr/local/bin/init.sh"]
|
|
|