1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/frp/Dockerfile

23 lines
497 B
Docker
Raw Normal View History

2017-11-02 14:19:07 +02:00
#
# Dockerfile for frp
#
2021-03-26 08:33:16 +02:00
FROM alpine:3
2021-02-12 13:55:46 +02:00
MAINTAINER EasyPi Software Foundation
2017-11-02 14:19:07 +02:00
2022-12-19 11:02:55 +02:00
ARG FRP_VERSION=0.46.0
ARG FRP_ARCH=amd64
ARG FRP_FILE=frp_${FRP_VERSION}_linux_${FRP_ARCH}.tar.gz
2022-11-08 12:27:36 +02:00
ARG FRP_URL=https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/${FRP_FILE}
2017-11-02 14:19:07 +02:00
WORKDIR /opt/frp
RUN set -xe \
&& apk add --no-cache curl tar \
2022-12-19 11:10:08 +02:00
&& mkdir -p bin etc \
&& curl -sSL ${FRP_URL} | tar xz --strip 1 -C bin
2017-11-02 14:19:07 +02:00
EXPOSE 7000/tcp 7000/udp 7500/tcp
2022-12-19 11:10:08 +02:00
CMD ["./bin/frps", "-c", "./etc/frps.ini"]