mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-21 18:06:36 +02:00
update kcptun
This commit is contained in:
parent
9a362be652
commit
beec3b125a
@ -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"]
|
||||
|
@ -5,6 +5,7 @@ After=network.target
|
||||
[Service]
|
||||
EnvironmentFile=-/etc/default/kcptun
|
||||
ExecStart=/usr/bin/kcptun $KCPTUN_OPTS
|
||||
LimitNOFILE=65536
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
|
Loading…
Reference in New Issue
Block a user