-
Notifications
You must be signed in to change notification settings - Fork 42
/
Dockerfile
51 lines (46 loc) · 1.43 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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
FROM golang:alpine as build
WORKDIR /build
RUN apk add --no-cache git \
&& git clone https://github.com/layou233/ZBProxy.git \
&& cd ZBProxy \
&& CGO_ENABLED=0 GOAMD64=v3 go build -v -ldflags="-s -w" -o ../ZBProxy-linux \
&& echo '{ \
"Services": [ \
{\
"Name": "HypixelDefault",\
"TargetAddress": "mc.hypixel.net",\
"TargetPort": 25565,\
"Listen": 25565,\
"Flow": "auto",\
"IPAccess": {\
"Mode": ""\
},\
"Minecraft": {\
"EnableHostnameRewrite": true,\
"OnlineCount": {\
"Max": 114514,\
"Online": -1,\
"EnableMaxLimit": false\
},\
"NameAccess": {\
"Mode": ""\
},\
"AnyDestSettings": {},\
"MotdFavicon": "{DEFAULT_MOTD}",\
"MotdDescription": "§d{NAME}§e service is working on §a§o{INFO}§r§c§lProxy for §6§n{HOST}:{PORT}§r" \
},\
"TLSSniffing": {\
"RejectNonTLS": false\
},\
"Outbound": {\
"Type": ""\
}\
}\
],\
"Lists": {}\
}'\
> ../ZBProxy.json
FROM gcr.io/distroless/static-debian11:latest
COPY --from=build /build/ZBProxy-linux /
COPY --from=build /build/ZBProxy.json /
CMD [ "/ZBProxy-linux" ]