mirror of
https://github.com/teddysun/across.git
synced 2025-01-31 12:19:35 +08:00
Update Dockerfile
Signed-off-by: Teddysun <i@teddysun.com>
This commit is contained in:
parent
9ffd12f3e0
commit
f82cc0c2a3
@ -8,22 +8,25 @@ MAINTAINER Teddysun <i@teddysun.com>
|
|||||||
|
|
||||||
ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip
|
ENV KMS_RELEASE https://github.com/Wind4/vlmcsd/archive/master.zip
|
||||||
|
|
||||||
RUN apk add --no-cache --virtual .build-deps \
|
RUN runDeps="\
|
||||||
g++ \
|
g++ \
|
||||||
gcc \
|
gcc \
|
||||||
wget \
|
wget \
|
||||||
make \
|
make \
|
||||||
unzip \
|
unzip \
|
||||||
&& cd /tmp \
|
"; \
|
||||||
&& wget -O vlmcsd.zip $KMS_RELEASE \
|
set -ex \
|
||||||
&& unzip vlmcsd.zip \
|
&& apk add --no-cache --virtual .build-deps ${runDeps} \
|
||||||
&& cd vlmcsd-master \
|
&& cd /tmp \
|
||||||
&& make \
|
&& wget -O vlmcsd.zip ${KMS_RELEASE} \
|
||||||
&& cp -p bin/vlmcsd /usr/bin/ \
|
&& unzip vlmcsd.zip \
|
||||||
&& chmod 755 /usr/bin/vlmcsd \
|
&& cd vlmcsd-master \
|
||||||
&& rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \
|
&& make \
|
||||||
&& apk del .build-deps
|
&& cp -p bin/vlmcsd /usr/bin/ \
|
||||||
|
&& chmod 755 /usr/bin/vlmcsd \
|
||||||
|
&& rm -rf /tmp/vlmcsd.zip /tmp/vlmcsd-master \
|
||||||
|
&& apk del .build-deps
|
||||||
|
|
||||||
EXPOSE 1688
|
EXPOSE 1688
|
||||||
|
|
||||||
CMD [ "/usr/bin/vlmcsd", "-D" ]
|
CMD [ "vlmcsd", "-D" ]
|
||||||
|
@ -5,13 +5,13 @@ FROM debian:stretch
|
|||||||
LABEL maintainer="Teddysun <i@teddysun.com>"
|
LABEL maintainer="Teddysun <i@teddysun.com>"
|
||||||
|
|
||||||
RUN set -ex \
|
RUN set -ex \
|
||||||
&& printf "deb http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list \
|
&& printf "deb http://deb.debian.org/debian sid main" > /etc/apt/sources.list.d/sid.list \
|
||||||
&& apt-get update \
|
&& apt-get update \
|
||||||
&& apt-get -t sid install -y --no-install-recommends libreswan xl2tpd \
|
&& apt-get -t sid install -y --no-install-recommends libreswan xl2tpd \
|
||||||
&& apt-get install -y --no-install-recommends wget iproute2 openssl ca-certificates kmod net-tools iptables \
|
&& apt-get install -y --no-install-recommends wget iproute2 openssl ca-certificates kmod net-tools iptables \
|
||||||
&& apt-get -y autoremove \
|
&& apt-get -y autoremove \
|
||||||
&& apt-get -y clean \
|
&& apt-get -y clean \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
COPY ./ipsec /etc/init.d/ipsec
|
COPY ./ipsec /etc/init.d/ipsec
|
||||||
COPY ./l2tp.sh /usr/bin/l2tp
|
COPY ./l2tp.sh /usr/bin/l2tp
|
||||||
@ -22,4 +22,4 @@ VOLUME /lib/modules
|
|||||||
|
|
||||||
EXPOSE 500/udp 4500/udp
|
EXPOSE 500/udp 4500/udp
|
||||||
|
|
||||||
CMD [ "/usr/bin/l2tp" ]
|
CMD [ "l2tp" ]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user