Create frps
This commit is contained in:
parent
2693b072f6
commit
42dc251caf
|
@ -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 frps frps.ini /frp && \
|
||||
cd .. && \
|
||||
rm -rf *.tar.gz frp_${FRP_VERSION}_linux_${PLATFORM}
|
||||
|
||||
VOLUME /frp
|
||||
|
||||
CMD /frp/frps -c /frp/frps.ini
|
|
@ -0,0 +1,12 @@
|
|||
# frps
|
||||
|
||||
GitHub [stilleshan/dockerfiles](https://github.com/stilleshan/dockerfiles)
|
||||
Docker [stilleshan/frps](https://hub.docker.com/r/stilleshan/frps)
|
||||
> *docker image support for X86 and ARM*
|
||||
|
||||
## 简介
|
||||
基于 [fatedier/frp](https://github.com/fatedier/frp) 项目的 docker 镜像.
|
||||
|
||||
## 使用
|
||||
使用教程和一键脚本请参考 [stilleshan/frps](https://github.com/stilleshan/frps) 项目
|
||||
|
Loading…
Reference in New Issue