Create frpc

This commit is contained in:
Stille 2021-07-02 19:14:38 +08:00
parent 42dc251caf
commit 978884fa06
2 changed files with 37 additions and 0 deletions

25
frpc/Dockerfile Normal file
View File

@ -0,0 +1,25 @@
FROM alpine:3.8
MAINTAINER Stille <stille@ioiox.com>
ENV FRP_VERSION 0.37.0
WORKDIR /
RUN set -xe && \
apk add tzdata && \
cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo "Asia/Shanghai" > /etc/timezone && \
apk del tzdata
RUN set -x && \
if [ "$(uname -m)" = "x86_64" ]; then export PLATFORM=amd64 ; else if [ "$(uname -m)" = "aarch64" ]; then export PLATFORM=arm64 ; fi fi && \
wget --no-check-certificate https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_${PLATFORM}.tar.gz && \
tar xzf frp_${FRP_VERSION}_linux_${PLATFORM}.tar.gz && \
cd frp_${FRP_VERSION}_linux_${PLATFORM} && \
mkdir /frp && \
mv frpc frpc.ini /frp && \
cd .. && \
rm -rf *.tar.gz frp_${FRP_VERSION}_linux_${PLATFORM}
VOLUME /frp
CMD /frp/frpc -c /frp/frpc.ini

12
frpc/README.md Normal file
View File

@ -0,0 +1,12 @@
# frpc
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
Docker [stilleshan/frpc](https://hub.docker.com/r/stilleshan/frpc)
> *docker image support for X86 and ARM*
## 简介
基于 [fatedier/frp](https://github.com/fatedier/frp) 项目的 docker 镜像.
## 使用
使用教程和一键脚本请参考 [stilleshan/frpc](https://github.com/stilleshan/frpc) 项目