Create Dockerfile

This commit is contained in:
Stille 2020-02-08 13:30:33 +08:00
parent b52cc53cf3
commit de06b13afb
1 changed files with 18 additions and 0 deletions

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM alpine:3.8
MAINTAINER Stille <stille@ioiox.com>
WORKDIR /
ENV FRP_VERSION 0.30.0
RUN set -x && \
wget --no-check-certificate https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz && \
tar xzf frp_${FRP_VERSION}_linux_amd64.tar.gz && \
cd frp_${FRP_VERSION}_linux_amd64 && \
mkdir /frp && \
mv frpc frpc.ini /frp && \
cd .. && \
rm -rf *.tar.gz frp_${FRP_VERSION}_linux_amd64
VOLUME /frp
CMD /frp/frpc -c /frp/frpc.ini