Skip to content

Commit

Permalink
0.13.1
Browse files Browse the repository at this point in the history
  • Loading branch information
atorber committed Aug 8, 2023
1 parent 405425a commit ac82622
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 24 deletions.
10 changes: 4 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -130,9 +130,7 @@ dist
.pnp.*
package-lock.json
.DS_Store
data/config.json
data/contactList.json
data/history.json
data/record.json
data/roomList.json
data/talk.json
data/*.json
data/*.db
*.memory-card.json
output/*
32 changes: 15 additions & 17 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,18 @@
# 使用官方Node.js 16镜像(包含基于Ubuntu的节点环境)
FROM node:18

# 安装需要的软件
RUN apt-get update && \
apt-get install -y curl software-properties-common && \
apt-get install -y ffmpeg

# 创建工作目录
# 阶段一:构建阶段
FROM node:18.17.0 AS build
WORKDIR /usr/src/app

# 复制当前目录下的所有文件到工作目录
COPY . .

# 安装依赖
COPY package*.json ./
RUN npm install
RUN npm install wx-voice -g
COPY . .
RUN npm run build && \
# 清理不必要的文件
rm -rf node_modules

# 启动应用
CMD ["sh", "-c", "wx-voice compile && npm run start"]
# 阶段二:最终运行时镜像
FROM node:18.17.0
WORKDIR /usr/src/app
COPY --from=build /usr/src/app/dist ./dist
RUN apt-get update && \
apt-get install -y curl software-properties-common ffmpeg && \
npm install wx-voice -g
CMD ["sh", "-c", "wx-voice compile && npm run start"]
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "WechatGPT",
"version": "0.13.0",
"version": "0.13.1",
"description": "wechat & chatgpt",
"type": "module",
"engines": {
Expand Down

0 comments on commit ac82622

Please sign in to comment.