-
Notifications
You must be signed in to change notification settings - Fork 5
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
2685fe5
commit 6354a0f
Showing
1 changed file
with
18 additions
and
11 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 |
---|---|---|
@@ -1,16 +1,23 @@ | ||
FROM debian:12 as builder | ||
MAINTAINER fanmingming <mingming@live.com> | ||
ENV DEBIAN_FRONTEND noninteractive | ||
# Alpine v3 | ||
FROM alpine:latest as builder | ||
LABEL maintainer="fanmingming" | ||
|
||
WORKDIR /tmp | ||
# 安装依赖 | ||
RUN apk update && apk add --no-cache make gcc libc-dev wget | ||
|
||
RUN apt-get update && apt-get install -y wget make gcc git && \ | ||
git clone https://github.com/pcherenkov/udpxy.git . && \ | ||
cd chipmunk && make && make install | ||
# 编译 UDPXY | ||
WORKDIR /tmp | ||
RUN wget -O udpxy.tar.gz https://github.com/pcherenkov/udpxy/archive/refs/tags/1.0-25.1.tar.gz \ | ||
&& tar zxf udpxy.tar.gz \ | ||
&& cd udpxy-* && cd chipmunk && make && make install | ||
|
||
# Alpine v3 | ||
FROM alpine:latest | ||
LABEL maintainer="fanmingming" | ||
|
||
FROM debian:12 | ||
MAINTAINER fanmingming <mingming@live.com> | ||
COPY --from=builder /usr/local /usr/local | ||
# Docker 启动 | ||
COPY --from=builder /usr/local/bin/udpxy /usr/local/bin/udpxy | ||
COPY --from=builder /usr/local/bin/udpxrec /usr/local/bin/udpxrec | ||
|
||
CMD ["/usr/local/bin/udpxy", "-T", "-p", "5893"] | ||
ENTRYPOINT ["/usr/local/bin/udpxy"] | ||
CMD ["-v", "-T", "-p", "5893"] |