forked from fscarmen2/V2-for-Koyeb
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Dockerfile
30 lines (27 loc) · 1.52 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
FROM nginx:latest
EXPOSE 80
WORKDIR /app
USER root
COPY nginx.conf /etc/nginx/nginx.conf
COPY entrypoint.sh ./
RUN apt-get update && apt-get install -y wget unzip iproute2 systemctl &&\
wget -O temp.zip https://github.com/v2fly/v2ray-core/releases/download/v4.45.0/v2ray-linux-64.zip &&\
unzip temp.zip v2ray v2ctl geoip.dat geosite.dat &&\
mv v2ray v &&\
rm -f temp.zip &&\
chmod -v 755 v v2ctl entrypoint.sh &&\
echo 'ewoJImxvZyI6IHsKCQkiYWNjZXNzIjogIi9kZXYvbnVsbCIsCgkJImVycm9yIjogIi9kZXYvbnVs\
bCIsCgkJImxvZ2xldmVsIjogIndhcm5pbmciCgl9LAoJImluYm91bmRzIjogW3sKCQkJInBvcnQi\
OiAxMDAwMCwKCQkJImxpc3RlbiI6ICIxMjcuMC4wLjEiLAoJCQkicHJvdG9jb2wiOiAidm1lc3Mi\
LAoJCQkic2V0dGluZ3MiOiB7CgkJCQkiY2xpZW50cyI6IFt7CgkJCQkJImlkIjogIlVVSUQiLAoJ\
CQkJCSJhbHRlcklkIjogMAoJCQkJfV0KCQkJfSwKCQkJInN0cmVhbVNldHRpbmdzIjogewoJCQkJ\
Im5ldHdvcmsiOiAid3MiLAoJCQkJIndzU2V0dGluZ3MiOiB7CgkJCQkJInBhdGgiOiAiVk1FU1Nf\
V1NQQVRIIgoJCQkJfQoJCQl9CgkJfSwKCQl7CgkJCSJwb3J0IjogMjAwMDAsCgkJCSJsaXN0ZW4i\
OiAiMTI3LjAuMC4xIiwKCQkJInByb3RvY29sIjogInZsZXNzIiwKCQkJInNldHRpbmdzIjogewoJ\
CQkJImNsaWVudHMiOiBbewoJCQkJCSJpZCI6ICJVVUlEIgo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