Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
fanmingming authored Aug 25, 2024
1 parent fda4653 commit 2685fe5
Showing 1 changed file with 11 additions and 18 deletions.
29 changes: 11 additions & 18 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
# Alpine v3
FROM alpine:latest as builder
LABEL maintainer="fanmingming"
FROM debian:12 as builder
MAINTAINER fanmingming <mingming@live.com>
ENV DEBIAN_FRONTEND noninteractive

# 安装依赖
RUN apk update && apk add --no-cache make gcc libc-dev wget

# 编译 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"
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


# Docker 启动
COPY --from=builder /usr/local/bin/udpxy /usr/local/bin/udpxy
COPY --from=builder /usr/local/bin/udpxrec /usr/local/bin/udpxrec
FROM debian:12
MAINTAINER fanmingming <mingming@live.com>
COPY --from=builder /usr/local /usr/local

ENTRYPOINT ["/usr/local/bin/udpxy"]
CMD ["-v", "-T", "-p", "5893"]
CMD ["/usr/local/bin/udpxy", "-T", "-p", "5893"]

0 comments on commit 2685fe5

Please sign in to comment.