keepmove commited on
Commit
6691591
·
verified ·
1 Parent(s): d36e604

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用指定的基础镜像
2
+ FROM jonssonyan/h-ui
3
+
4
+ # 设置工作目录
5
+ WORKDIR /h-ui
6
+
7
+ # 安装 curl
8
+ RUN apk add --no-cache curl
9
+
10
+ # 下载 hysteria2 二进制文件
11
+ RUN curl -L -o /h-ui/bin/hysteria2 https://github.com/apernet/hysteria/releases/latest/download/hysteria-linux-amd64 && \
12
+ chmod +x /h-ui/bin/hysteria2
13
+
14
+ # 创建 logs、data 和 export 目录并授予写权限
15
+ RUN mkdir -p /h-ui/logs /h-ui/data /h-ui/export && chmod -R 777 /h-ui/logs /h-ui/data /h-ui/export
16
+
17
+ # 暴露8081端口
18
+ EXPOSE 8081
19
+
20
+ # 启动命令
21
+ CMD ["./h-ui", "-p", "8081"]