mirror of
https://github.com/stilleshan/dockerfiles.git
synced 2025-09-27 05:06:04 +08:00
Create frpc
This commit is contained in:
25
frpc/Dockerfile
Normal file
25
frpc/Dockerfile
Normal 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
12
frpc/README.md
Normal 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) 项目
|
||||||
|
|
Reference in New Issue
Block a user