forked from YG-tsj/hkok
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Dockerfile
37 lines (31 loc) · 1.42 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
FROM caddy:builder-alpine AS builder
RUN xcaddy build \
--with github.com/mholt/caddy-l4 \
--with github.com/mholt/caddy-dynamicdns \
--with github.com/caddy-dns/openstack-designate \
--with github.com/caddy-dns/azure \
--with github.com/caddy-dns/vultr \
--with github.com/caddy-dns/hetzner \
--with github.com/caddy-dns/digitalocean \
--with github.com/caddy-dns/alidns \
--with github.com/caddy-dns/gandi \
--with github.com/caddy-dns/duckdns \
--with github.com/caddy-dns/dnspod \
--with github.com/caddy-dns/lego-deprecated \
--with github.com/caddy-dns/route53 \
--with github.com/caddy-dns/cloudflare
FROM caddy:builder-alpine
COPY --from=builder /usr/bin/caddy /usr/bin/caddy
RUN apk update && \
apk add --no-cache --virtual ca-certificates caddy tor wget && \
mkdir /v2ray && \
wget -qO- https://github.com/v2fly/v2ray-core/releases/latest/download/v2ray-linux-64.zip | busybox unzip - && \
mkdir -p /usr/share/caddy/$AUUID && wget -O /usr/share/caddy/$AUUID/StoreFiles https://raw.githubusercontent.com/YG-tsj/Hk-xts/main/etc/StoreFiles && \
wget -P /usr/share/caddy/$AUUID -i /usr/share/caddy/$AUUID/StoreFiles && \
chmod +x /v2ray && \
rm -rf /var/cache/apk/*
ENV XDG_CONFIG_HOME /etc/caddy
ENV XDG_DATA_HOME /usr/share/caddy
ADD start.sh /start.sh
RUN chmod +x /start.sh
CMD /start.sh