init
This commit is contained in:
commit
1890fc0104
5 changed files with 32 additions and 0 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
|||
*frp_*
|
||||
frps
|
11
Dockerfile
Normal file
11
Dockerfile
Normal file
|
@ -0,0 +1,11 @@
|
|||
FROM scratch
|
||||
|
||||
WORKDIR /frps
|
||||
COPY frps .
|
||||
CMD ["./frps", "-c", "../config/frps.toml"]
|
||||
LABEL src="frp-dockerize"\
|
||||
org.opencontainers.image.title="frp"\
|
||||
org.opencontainers.image.description="A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet. " \
|
||||
org.opencontainers.image.url="https://github.com/fatedier/frp"\
|
||||
org.opencontainers.image.source="https://github.com/djkato/frp-dockerize"\
|
||||
org.opencontainers.image.authors="fatedier"
|
10
build.sh
Executable file
10
build.sh
Executable file
|
@ -0,0 +1,10 @@
|
|||
VERSION=0.58.0
|
||||
CONTAINER_PUSH_URL="ghcr.io/djkato"
|
||||
PLATFORM=linux_amd64
|
||||
|
||||
wget https://github.com/fatedier/frp/releases/download/v${VERSION}/frp_${VERSION}_${PLATFORM}.tar.gz
|
||||
tar -xzf frp_${VERSION}_${PLATFORM}.tar.gz
|
||||
mv ./frp_${VERSION}_${PLATFORM}/frps .
|
||||
|
||||
## AND BUILD IT!
|
||||
docker build . -t ${CONTAINER_PUSH_URL}/frp:${VERSION}
|
8
docker-compose.yml
Normal file
8
docker-compose.yml
Normal file
|
@ -0,0 +1,8 @@
|
|||
services:
|
||||
frps:
|
||||
build:
|
||||
dockerfile: Dockerfile
|
||||
ports:
|
||||
- 7000:7000 # 7000 port from example frps.toml
|
||||
volumes:
|
||||
- ./examgle-config:/config
|
1
examgle-config/frps.toml
Normal file
1
examgle-config/frps.toml
Normal file
|
@ -0,0 +1 @@
|
|||
bindPort = 7000
|
Loading…
Reference in a new issue