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
bc6d693e
Commit
bc6d693e
authored
Aug 04, 2025
by
zhangxingmin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
push
parent
71d49387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
9 deletions
+9
-9
Dockerfile
+9
-9
No files found.
Dockerfile
View file @
bc6d693e
#
使用 Node.js 基础镜像
#
第一阶段:构建环境
FROM
node:20-alpine AS builder
# 设置时区
...
...
@@ -30,14 +30,8 @@ WORKDIR /app
# 复制项目文件
COPY
. .
# 配置 npm 镜像源
RUN
npm config
set
registry https://registry.npmmirror.com
# 安装项目依赖
RUN
npm install
--no-audit
# 复制 HBuilderX 到镜像中
COPY
--from=hbuilder-context /opt/HBuilderX /opt/HBuilderX
# 复制 HBuilderX(从构建上下文的临时目录)
COPY
./hbuilder_temp_*/opt/HBuilderX /opt/HBuilderX
# 修复权限
RUN
chmod 755 /opt/HBuilderX/cli
&&
\
...
...
@@ -47,6 +41,12 @@ RUN chmod 755 /opt/HBuilderX/cli && \
# 设置 Qt 库路径
ENV
LD_LIBRARY_PATH=/opt/HBuilderX:$LD_LIBRARY_PATH
# 配置 npm 镜像源
RUN
npm config
set
registry https://registry.npmmirror.com
# 安装项目依赖
RUN
npm install
--no-audit
# 登录和构建项目
ARG
HB_USERNAME
ARG
HB_PASSWORD
...
...
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