update frpc.

This commit is contained in:
amass 2025-03-09 13:13:06 +08:00
parent 059c9be797
commit 33261c721b

View File

@ -2,7 +2,7 @@ FROM amd64/alpine:3.18
LABEL maintainer="amass <168062547@qq.com>" LABEL maintainer="amass <168062547@qq.com>"
ENV FRP_VERSION 0.61.1 ENV FRP_VERSION=0.61.2
RUN apk add openssl curl ca-certificates \ RUN apk add openssl curl ca-certificates \
&& wget 'http://openresty.org/package/admin@openresty.com-5ea678a6.rsa.pub' \ && wget 'http://openresty.org/package/admin@openresty.com-5ea678a6.rsa.pub' \
@ -11,8 +11,7 @@ RUN apk add openssl curl ca-certificates \
&& MAJOR_VER=`echo $VERSION_ID | sed 's/\.[0-9]\+$//'` \ && MAJOR_VER=`echo $VERSION_ID | sed 's/\.[0-9]\+$//'` \
&& echo "http://openresty.org/package/alpine/v$MAJOR_VER/main" | tee -a /etc/apk/repositories \ && echo "http://openresty.org/package/alpine/v$MAJOR_VER/main" | tee -a /etc/apk/repositories \
&& apk update \ && apk update \
&& apk add openresty openresty-resty openresty-opm \ && apk add openresty openresty-resty openresty-opm
&& opm get bungle/lua-resty-session
RUN cd /root \ RUN cd /root \
&& wget --no-check-certificate -c https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz \ && wget --no-check-certificate -c https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz \
@ -27,4 +26,4 @@ RUN cd /root \
ENTRYPOINT if [ -d /app ]; then cd /app && openresty -p /app; fi; /usr/bin/frpc -c /etc/frp/frpc.toml ENTRYPOINT if [ -d /app ]; then cd /app && openresty -p /app; fi; /usr/bin/frpc -c /etc/frp/frpc.toml
# docker build --progress=tty -f frpc.dockerfile -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/frpc:0.61.1 . # docker build --progress=tty -f frpc.dockerfile -t registry.cn-shenzhen.aliyuncs.com/amass_toolset/frpc:0.61.2 .