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
ae40a46b
Commit
ae40a46b
authored
Jul 23, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
db111e3f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
Dockerfile
+7
-5
No files found.
Dockerfile
View file @
ae40a46b
...
...
@@ -24,9 +24,6 @@ WORKDIR /app
# 第二阶段:项目构建
FROM
base AS builder
# 通过构建参数传递 HBuilderX 路径
ARG
HBUILDERX_PATH
# 直接从宿主机复制 HBuilderX
COPY
./HBuilderX /opt/HBuilderX
...
...
@@ -39,8 +36,13 @@ RUN echo "### 验证 HBuilderX 安装 ###" && \
echo
"版本信息: "
&&
/opt/HBuilderX/cli
--version
;
\
else
\
echo
"错误:HBuilderX CLI 不存在!"
&&
\
find /opt
-name
cli
&&
\
exit
1
;
\
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
;
\
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