更新 Docker 镜像配置,清理 archive 文件

- 删除 archive/bbs-go 等历史代码
- 新增 nginx、frpc-client Docker 镜像配置
- 添加 .gitignore 忽略大文件
This commit is contained in:
12600k-rog-d4
2026-04-03 00:22:53 +08:00
parent 8f4d399cfd
commit 99afdbd82e
1512 changed files with 265885 additions and 128225 deletions

View File

@@ -0,0 +1,6 @@
# 排除非必要文件
*.md
*.sh
*.service
docker-compose.yml
.dockerignore

33
frpc-client/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
# frpc-client Docker image
# 基于 Alpine Linux轻量级
FROM alpine:3.19
LABEL maintainer="StoneLan"
LABEL description="frp client container"
# 安装依赖ca-certificates 用于 HTTPStzdata 用于时区)
RUN apk add --no-cache ca-certificates tzdata
# 复制 frp 二进制文件和配置
COPY frp_0.61.1_linux_amd64.tar.gz /tmp/frp.tar.gz
COPY frpc.toml /etc/frpc/frpc.toml
# 解压并安装 frpc
RUN tar -xzf /tmp/frp.tar.gz -C /tmp/ && \
cp /tmp/frp_0.61.1_linux_amd64/frpc /usr/local/bin/ && \
chmod +x /usr/local/bin/frpc && \
rm -rf /tmp/frp*
# 创建非 root 用户
RUN adduser -D -u 1000 frpcuser && \
chown -R frpcuser:frpcuser /etc/frpc
USER frpcuser
# 健康检查
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD pkill -0 frpc || exit 1
ENTRYPOINT ["/usr/local/bin/frpc"]
CMD ["-c", "/etc/frpc/frpc.toml"]

View File

@@ -0,0 +1,11 @@
services:
frpc:
image: frpc-client:latest
container_name: frpc-client
restart: unless-stopped
networks:
- trim-default
networks:
trim-default:
external: true

265663
frpc-client/frp.tar.gz.b64 Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -7,15 +7,15 @@ auth.token = "8f3c9b7d5e2a4f6h1i0j"
[[proxies]]
name = "http"
type = "tcp"
localIP = "127.0.0.1"
localIP = "nginx-proxy"
localPort = 80
remotePort = 80
[[proxies]]
name = "https"
type = "tcp"
localIP = "127.0.0.1"
localPort = 443
localIP = "10.0.3.148"
localPort = 4430
remotePort = 443