forked from wyx2685/V2bX
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1f6cccb
commit e7997f9
Showing
1 changed file
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Build go | ||
FROM golang:1.21.4-alpine AS builder | ||
WORKDIR /app | ||
COPY . . | ||
ENV CGO_ENABLED=0 | ||
RUN go mod download | ||
RUN go build -v -o V2bX -tags "sing xray with_reality_server with_quic with_grpc with_utls with_wireguard with_acme" | ||
|
||
# Release | ||
FROM alpine | ||
# 安装必要的工具包 | ||
RUN apk --update --no-cache add tzdata ca-certificates \ | ||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime | ||
RUN mkdir /etc/V2bX/ | ||
COPY --from=builder /app/V2bX /usr/local/bin | ||
|
||
ENTRYPOINT [ "V2bX", "--config", "/etc/V2bX/config.json"] |