hp / Dockerfile
keepmove's picture
Create Dockerfile
6691591 verified
raw
history blame
555 Bytes
# 使用指定的基础镜像
FROM jonssonyan/h-ui
# 设置工作目录
WORKDIR /h-ui
# 安装 curl
RUN apk add --no-cache curl
# 下载 hysteria2 二进制文件
RUN curl -L -o /h-ui/bin/hysteria2 https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-amd64 && \
chmod +x /h-ui/bin/hysteria2
# 创建 logs、data 和 export 目录并授予写权限
RUN mkdir -p /h-ui/logs /h-ui/data /h-ui/export && chmod -R 777 /h-ui/logs /h-ui/data /h-ui/export
# 暴露8081端口
EXPOSE 8081
# 启动命令
CMD ["./h-ui", "-p", "8081"]