v2 / Dockerfile
8e's picture
Update Dockerfile
df79b19 verified
raw
history blame contribute delete
672 Bytes
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"]