Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
5ced55f1
Commit
5ced55f1
authored
Jul 23, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
ae40a46b
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
8 deletions
+12
-8
Dockerfile
+12
-8
No files found.
Dockerfile
View file @
5ced55f1
...
...
@@ -24,25 +24,29 @@ WORKDIR /app
# 第二阶段:项目构建
FROM
base AS builder
# 直接从宿主机复制 HBuilderX
# 添加构建日志 - 显示上下文文件
RUN
echo
"### 构建上下文文件列表 ###"
&&
\
ls
-la
# 复制 HBuilderX
COPY
./HBuilderX /opt/HBuilderX
#
验证安装
#
详细验证
RUN
echo
"### 验证 HBuilderX 安装 ###"
&&
\
ls
-la
/opt/HBuilderX
&&
\
echo
"### /opt/HBuilderX 内容: "
&&
ls
-la
/opt/HBuilderX
&&
\
if
[
-f
"/opt/HBuilderX/cli"
]
;
then
\
echo
"
HBuilderX CLI 存在
"
&&
\
echo
"
### HBuilderX CLI 存在 ###
"
&&
\
chmod +x /opt/HBuilderX/cli
&&
\
echo
"版本信息: "
&&
/opt/HBuilderX/cli
--version
;
\
echo
"
###
版本信息: "
&&
/opt/HBuilderX/cli
--version
;
\
else
\
echo
"
错误:HBuilderX CLI 不存在!
"
&&
\
echo
"
尝试手动下载...
"
&&
\
echo
"
### 错误:HBuilderX CLI 不存在!###
"
&&
\
echo
"
### 尝试手动下载... ###
"
&&
\
mkdir
-p
/opt/HBuilderX
&&
\
curl
-o
hbuilderx.tar.gz https://download.dcloud.net.cn/HBuilderX.4.75.2025071105.linux_x64.full.tar.gz
&&
\
tar
-xzvf
hbuilderx.tar.gz
-C
/opt/HBuilderX
--strip-components
=
1
&&
\
rm hbuilderx.tar.gz
&&
\
chmod +x /opt/HBuilderX/cli
&&
\
/opt/HBuilderX/cli
--version
;
\
echo
"### 下载后版本: "
&&
/opt/HBuilderX/cli
--version
;
\
fi
# 设置环境变量
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment