From 5a3283b650aa8187c927fca9940f4a123a66d9ae Mon Sep 17 00:00:00 2001 From: luochuan Date: Fri, 28 Jun 2024 18:16:46 +0800 Subject: [PATCH] feat: chatroom --- src/Dockerfile | 15 +++++++++++++++ src/components/ChatApp.vue | 6 +++--- 2 files changed, 18 insertions(+), 3 deletions(-) create mode 100644 src/Dockerfile diff --git a/src/Dockerfile b/src/Dockerfile new file mode 100644 index 0000000..b9b5899 --- /dev/null +++ b/src/Dockerfile @@ -0,0 +1,15 @@ +# 使用Node.js作为基础镜像 +FROM node:latest + +# 设置工作目录 +WORKDIR /app + +# 将应用的源代码复制到工作目录 +COPY . /app + +# 暴露应用使用的端口 +EXPOSE 3000 8080 + +# 启动应用 +# 服务端 +CMD nohup sh -c 'npm run prod && npm run serve' \ No newline at end of file diff --git a/src/components/ChatApp.vue b/src/components/ChatApp.vue index d59bb38..2604186 100644 --- a/src/components/ChatApp.vue +++ b/src/components/ChatApp.vue @@ -364,9 +364,9 @@ about:{ version:"v1.0", license:"MIT", - author:"cleverqin", - email:"705597001@qq.com", - github:"https://github.com/cleverqin/node-websocket-Chatroom" + author:"alis-robin", + email:"issmallcc@gmail.com", + github:"http://121.36.12.162:10086/alis-lc/alis-chat.git" }, loginUser:{}, token:"",