Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
python3.12-node22-template
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
eazy-template
python3.12-node22-template
Commits
dd4f5471
Commit
dd4f5471
authored
Sep 15, 2025
by
bin.gong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update Dockerfile
parent
ff411655
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
Dockerfile
Dockerfile
+5
-8
No files found.
Dockerfile
View file @
dd4f5471
...
@@ -51,19 +51,16 @@ COPY --from=node-base /usr/local/lib/node_modules/ /usr/local/lib/node_modules/
...
@@ -51,19 +51,16 @@ COPY --from=node-base /usr/local/lib/node_modules/ /usr/local/lib/node_modules/
# 复制资源文件
# 复制资源文件
COPY
.resource/ /app/.resource/
COPY
.resource/ /app/.resource/
# 拷贝启动脚本
COPY
start.sh /app/start.sh
# 设置环境变量
# 设置环境变量
ENV
RESOURCE_PATH=/app/.resource/resource_deploy.json
ENV
RESOURCE_PATH=/app/.resource/resource_deploy.json
ENV
PYTHONPATH=/app/backend
ENV
PYTHONPATH=/app/backend
ENV
NODE_ENV=production
ENV
NODE_ENV=production
# 创建启动脚本
# 设置启动脚本权限
RUN
echo
'#!/bin/bash\n
\
RUN
chmod
+x /app/start.sh
# 启动 Python 后端\n
\
cd /app/backend && python app.py &\n
\
# 启动 Node.js 前端\n
\
cd /app/frontend && node server.js &\n
\
# 等待所有后台进程\n
\
wait'
>
/app/start.sh
&&
chmod
+x /app/start.sh
# 暴露端口
# 暴露端口
EXPOSE
$APP_PORT_1 $APP_PORT_2
EXPOSE
$APP_PORT_1 $APP_PORT_2
...
...
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