1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/frp/Dockerfile
2022-11-08 18:27:36 +08:00

22 lines
453 B
Docker

#
# Dockerfile for frp
#
FROM alpine:3
MAINTAINER EasyPi Software Foundation
ARG FRP_VERSION=0.45.0
ARG FRP_FILE=frp_${FRP_VERSION}_linux_amd64.tar.gz
ARG FRP_URL=https://github.com/fatedier/frp/releases/download/v${FRP_VERSION}/${FRP_FILE}
WORKDIR /opt/frp
RUN set -xe \
&& apk add --no-cache curl tar \
&& curl -sSL $FRP_URL | tar xz --strip 1 \
&& apk del curl tar
EXPOSE 7000/tcp 7000/udp 7500/tcp
CMD ["./frps", "-c", "frps.ini"]