docker-frp/Dockerfile

22 lines
425 B
Docker
Raw Normal View History

2020-07-09 07:47:27 +00:00
#
# Dockerfile for frp
# Based on: vimagick/frp
#
FROM alpine
2021-01-02 09:56:44 +00:00
ENV FRP_VERSION=var_FRP_VERSION
2022-06-20 01:45:49 +00:00
ENV FRP_URL https://github.com/fatedier/frp/releases/download/${FRP_VERSION}/frp_${FRP_VERSION}_linux_amd64.tar.gz
2020-07-09 07:47:27 +00:00
WORKDIR /opt/frp
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL $FRP_URL | tar xz --strip 1 \
&& apk del curl tar
COPY ./run.sh /opt/run.sh
RUN chmod +x /opt/run.sh
CMD ["/opt/run.sh"]