update kcptun

This commit is contained in:
kev 2023-06-20 17:05:28 +08:00
bovenliggende 9a362be652
commit beec3b125a
2 gewijzigde bestanden met toevoegingen van 5 en 3 verwijderingen

Bestand weergeven

@ -5,13 +5,14 @@
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ENV KCPTUN_VERSION=20210922
ENV KCPTUN_FILE=kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz
ENV KCPTUN_URL=https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE}
ARG KCPTUN_VERSION=20230214
ARG KCPTUN_FILE=kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz
ARG KCPTUN_URL=https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE}
RUN set -xe \
&& apk add --no-cache curl \
&& curl -sSL ${KCPTUN_URL} | tar xz -C /usr/local/bin \
&& server_linux_amd64 --version \
&& apk del curl
ENTRYPOINT ["server_linux_amd64"]

Bestand weergeven

@ -5,6 +5,7 @@ After=network.target
[Service]
EnvironmentFile=-/etc/default/kcptun
ExecStart=/usr/bin/kcptun $KCPTUN_OPTS
LimitNOFILE=65536
Restart=on-failure
[Install]