File size: 672 Bytes
df79b19 46bff3b a3cb6bb 46bff3b 8319a63 46bff3b 40be3f2 46bff3b ef7feae be5cf97 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
FROM ubuntu:latest
EXPOSE 7860
WORKDIR /bz/
COPY Caddyfile /bz/Caddyfile
COPY start.sh /bz/start.sh
RUN apt update && apt install -y wget unzip && \
wget https://github.com/v2fly/v2ray-core/releases/download/v4.45.2/v2ray-linux-64.zip -O /bz/v2.zip && \
wget https://github.com/caddyserver/caddy/releases/download/v2.7.6/caddy_2.7.6_linux_amd64.tar.gz -O /bz/caddy.tar.gz && \
unzip -d /bz/ /bz/v2.zip && \
tar -zxvf /bz/caddy.tar.gz -C /bz/
COPY config.json /bz/config.json
RUN --mount=type=secret,id=UUID,mode=0444,required=true \
sed -i "s/UUID/$(cat /run/secrets/UUID)/g" config.json
RUN chmod -R 777 /bz/
CMD ["/bin/bash" ,"/bz/start.sh"]
|