docker_pack/clash/Dockerfile

22 lines
462 B
Docker
Raw Permalink Normal View History

2024-09-12 07:18:10 +08:00
# 使用 Alpine Linux 最新版作为基础镜像
FROM alpine:latest
# 设置维护者信息
LABEL maintainer="haoru"
# 更新 Alpine 的包索引并安装必要的工具
RUN apk update && \
apk add --no-cache bash
# 设置工作目录
WORKDIR /opt/clash
# 复制 frp 文件夹到容器中
COPY clash /opt/clash
# 设置 frpc 为可执行
RUN chmod +x /opt/clash/clash
# 设置默认启动命令
ENTRYPOINT ["/opt/clash/clash"]
CMD ["-d", "/opt/clash"]