Skip to content

Commit 1b44522

Browse files
authored
Create Dockerfile
1 parent 5b003da commit 1b44522

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

Dockerfile

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Alpine v3
2+
FROM alpine:latest as builder
3+
LABEL maintainer "Lordpedal"
4+
5+
# Instalacion dependencias
6+
RUN apk update && apk add make gcc libc-dev
7+
8+
# Compila UDPXY
9+
WORKDIR /tmp
10+
RUN wget -O udpxy-src.tar.gz http://www.udpxy.com/download/udpxy/udpxy-src.tar.gz \
11+
&& tar zxf udpxy-src.tar.gz \
12+
&& cd udpxy-* && make && make install
13+
14+
# Alpine v3
15+
FROM alpine:latest
16+
LABEL maintainer "Lordpedal"
17+
18+
# Arranque Docker
19+
COPY --from=builder /usr/local/bin/udpxy /usr/local/bin/udpxy
20+
COPY --from=builder /usr/local/bin/udpxrec /usr/local/bin/udpxrec
21+
22+
ENTRYPOINT ["/usr/local/bin/udpxy"]
23+
CMD ["-v", "-T", "-p", "2112"]

0 commit comments

Comments
 (0)