🐳 优化面板镜像构建

This commit is contained in:
chaos-zhu 2024-08-02 12:36:33 +08:00
parent 7513825d28
commit 9e3e6dc806
11 changed files with 35 additions and 18 deletions

View File

@ -1,3 +1,12 @@
## [2.1.0](https://github.com/chaos-zhu/easynode/releases) (2024-08-02)
### Features
* 支持脚本库功能 ✔
* 支持批量指令下发功能 ✔
* 重写Dockerfile,大幅减少镜像体积 ✔
* 调整优化面板UI ✔
## [2.0.0](https://github.com/chaos-zhu/easynode/releases) (2024-07-29) ## [2.0.0](https://github.com/chaos-zhu/easynode/releases) (2024-07-29)
### Features ### Features

View File

@ -1,14 +1,23 @@
FROM node:20.16-alpine3.20 FROM node:20.16-alpine3.20 AS builder_web
WORKDIR /easynode WORKDIR /easynode/web
COPY . . COPY ./web .
COPY yarn.lock .
RUN yarn
RUN yarn build
# RUN find ../server/app/static -type f ! -name '.gitkeep' -exec rm -f {} +
# RUN mv dist/* ../server/app/static
# 在这里加上builder_server
FROM node:20.16-alpine3.20 AS builder_server
WORKDIR /easynode/server
COPY ./server .
COPY yarn.lock .
COPY --from=builder_web /easynode/web/dist ./app/static
RUN yarn RUN yarn
WORKDIR /easynode/web FROM node:20.16-alpine3.20
RUN yarn build WORKDIR /easynode
RUN find ../server/app/static -type f ! -name '.gitkeep' -exec rm -f {} + COPY --from=builder_server /easynode/server .
RUN mv dist/* ../server/app/static
WORKDIR /easynode/server
ENV HOST 0.0.0.0 ENV HOST 0.0.0.0
EXPOSE 8082 EXPOSE 8082
CMD [ "npm", "start" ] CMD ["npm", "start"]

View File

@ -9,7 +9,7 @@
> [!NOTE] > [!NOTE]
> 客户端信息监控与webssh功能都将以`该服务器作为中转`。中国大陆连接建议使用香港、新加坡、日本、韩国等地区的低延迟服务器来安装服务端 > 客户端信息监控与webssh功能都将以`该服务器作为中转`。中国大陆连接建议使用香港、新加坡、日本、韩国等地区的低延迟服务器来安装服务端
- [功能](#功能) <!-- - [功能](#功能)
- [安装](#安装指南) - [安装](#安装指南)
- [服务端安装](#服务端安装) - [服务端安装](#服务端安装)
- [客户端安装](#客户端安装) - [客户端安装](#客户端安装)
@ -18,7 +18,7 @@
- [开发](#开发) - [开发](#开发)
- [Q&A](#qa) - [Q&A](#qa)
- [感谢Star](#感谢star) - [感谢Star](#感谢star)
- [License](#license) - [License](#license) -->
## 功能 ## 功能
@ -27,14 +27,13 @@
- [x] 实例分组 - [x] 实例分组
- [x] 凭据托管 - [x] 凭据托管
- [x] 邮件通知 - [x] 邮件通知
- [x] 实例状态推送 - [x] 服务器状态推送
- [x] 脚本库 - [x] 脚本库
- [ ] 批量指令(开发中) - [x] 批量指令
- [ ] 终端自定义
- 实例面板 - 实例面板
![实例面板](./doc_images/v2.0-1.jpg) ![实例面板](./doc_images/merge.gif)
- 终端&sftp
![终端&sftp](./doc_images/v2.0-2.jpg)
## 安装 ## 安装

BIN
doc_images/1..jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 149 KiB

BIN
doc_images/2.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 168 KiB

BIN
doc_images/3.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 110 KiB

BIN
doc_images/4.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 206 KiB

BIN
doc_images/merge.gif Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 847 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 240 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 247 KiB

View File

@ -61,7 +61,7 @@
<div class="switch_wrap"> <div class="switch_wrap">
<el-tooltip <el-tooltip
effect="dark" effect="dark"
content="开启后发送键盘输入到所有会话" content="开启后同步键盘输入到所有会话"
placement="top" placement="top"
> >
<el-switch <el-switch