You've already forked dockerfiles
mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-11-27 22:28:31 +02:00
update kcptun
This commit is contained in:
@@ -5,13 +5,14 @@
|
|||||||
FROM alpine:3
|
FROM alpine:3
|
||||||
MAINTAINER EasyPi Software Foundation
|
MAINTAINER EasyPi Software Foundation
|
||||||
|
|
||||||
ENV KCPTUN_VERSION=20210922
|
ARG KCPTUN_VERSION=20230214
|
||||||
ENV KCPTUN_FILE=kcptun-linux-amd64-${KCPTUN_VERSION}.tar.gz
|
ARG 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_URL=https://github.com/xtaci/kcptun/releases/download/v${KCPTUN_VERSION}/${KCPTUN_FILE}
|
||||||
|
|
||||||
RUN set -xe \
|
RUN set -xe \
|
||||||
&& apk add --no-cache curl \
|
&& apk add --no-cache curl \
|
||||||
&& curl -sSL ${KCPTUN_URL} | tar xz -C /usr/local/bin \
|
&& curl -sSL ${KCPTUN_URL} | tar xz -C /usr/local/bin \
|
||||||
|
&& server_linux_amd64 --version \
|
||||||
&& apk del curl
|
&& apk del curl
|
||||||
|
|
||||||
ENTRYPOINT ["server_linux_amd64"]
|
ENTRYPOINT ["server_linux_amd64"]
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ After=network.target
|
|||||||
[Service]
|
[Service]
|
||||||
EnvironmentFile=-/etc/default/kcptun
|
EnvironmentFile=-/etc/default/kcptun
|
||||||
ExecStart=/usr/bin/kcptun $KCPTUN_OPTS
|
ExecStart=/usr/bin/kcptun $KCPTUN_OPTS
|
||||||
|
LimitNOFILE=65536
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|||||||
Reference in New Issue
Block a user