update frp

This commit is contained in:
2020-07-28 10:16:24 +08:00
parent 90a7dd019f
commit 656622eabe
3 changed files with 71 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
FROM alpine:3
MAINTAINER Newnius <newnius.cn@gmail.com>
USER root
# Prerequisites
RUN apk add --no-cache openssl
# Install frp
ENV VERSION 0.33.0
RUN wget -O frp.tar.gz https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_linux_amd64.tar.gz && \
tar -xzf frp.tar.gz -C / && rm frp.tar.gz
RUN mv /frp_${VERSION}_linux_amd64 /frp
WORKDIR /frp
CMD ["/frp/frps", "-c", "/frp/frps.ini"]