Sign inSign up

zydou/frp

By zydou

•Updated 6 days ago

Dockerized frp client based on alpine. (weekly build)

Image
0

10K+

zydou/frp repository overview

⁠Dockerized frp⁠ client based on alpine

⁠CLI usage:
docker run \
    -d \
    --name frp \
    -p 7000:7000 \
    -v $(pwd)/frps.ini:/etc/frps.ini \
    zydou/frp \
    frpc -c /etc/frpc.ini
⁠Compose example:
frp:
    image: zydou/frp
    ports:
        - 7000:7000
    volumes:
        - ./frps.ini:/etc/frps.ini
    command: frps -c /etc/frps.ini
    restart: always
⁠Note:

Replace fprs with frpc if you need frp client end.

⁠Dockerfile
FROM golang:alpine as builder
ENV CGO_ENABLED=0
RUN apk add --no-cache curl build-base git libcap && \
    git clone https://github.com/fatedier/frp.git /root/frp && \
    cd /root/frp && \
    go build -v -ldflags "-s -w" -o /frps ./cmd/frps && \
    go build -v -ldflags "-s -w" -o /frpc ./cmd/frpc && \
    ls /frp* | xargs -n1 setcap 'cap_net_bind_service+ep' && \
    cp ./conf/frp* /etc/

FROM alpine

COPY --from=builder /frp* /usr/bin/
COPY --from=builder /etc/frp* /etc/

CMD ["/usr/bin/frps", "-c", "/etc/frps.ini"]

Tag summary

Content type

Image

Digest

sha256:f71a2a3b6…

Size

14.2 MB

Last updated

6 days ago

docker pull zydou/frp