优化Dockerfile,只复制server.js
This commit is contained in:
1 parent
9ad7577e35
commit
a8c5cdb788
2 files changed
+4
-4
No files matched your search
+2
-2
@@ -6,8 +6,8 @@ WORKDIR /app
|
||||
COPY server/package.json ./server/
|
||||
RUN cd server && npm install --production --no-package-lock --no-audit
|
||||
|
||||
# 复制其余服务器代码
|
||||
COPY server/ ./server/
|
||||
# 只复制server.js文件
|
||||
COPY server/server.js ./server/
|
||||
|
||||
# 前端构建阶段
|
||||
FROM docker.1ms.run/node:18-alpine AS frontend-builder
|
||||
|
||||
+2
-2
@@ -50,8 +50,8 @@ import {
|
||||
* debug: 是否开启调试模式
|
||||
*/
|
||||
window.config = {
|
||||
wsAddress: 'ws://127.0.0.1:8088',
|
||||
//wsAddress: '/ws',
|
||||
//wsAddress: 'ws://127.0.0.1:8088',
|
||||
wsAddress: '/ws',
|
||||
debug: true
|
||||
};
|
||||
|
||||
|
||||
Reference in new issue
Block a user