qeqwe15 commited on
Commit
dba67c8
·
verified ·
1 Parent(s): 6db06ba

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +21 -0
Dockerfile ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM node:18
2
+
3
+ RUN apt-get update && apt-get install -y git
4
+
5
+ RUN git clone https://github.com/jianjianai/microsoft-copilot-porxy.git /app
6
+ WORKDIR /app
7
+
8
+ # 复制源代码
9
+ COPY . /app
10
+
11
+ # 安装依赖
12
+ RUN npm install
13
+
14
+ # 编译项目
15
+ RUN npm run deploy
16
+
17
+ # 暴露端口
18
+ EXPOSE 3000
19
+
20
+ # 启动命令
21
+ CMD ["node", "dist/index.js"]