Skip to content

Commit

Permalink
feat: 签名 API 异常时提供重启选项
Browse files Browse the repository at this point in the history
  • Loading branch information
clansty committed Jan 10, 2024
1 parent fe0fc61 commit 7f8345f
Show file tree
Hide file tree
Showing 13 changed files with 230 additions and 30 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
COPY package.json pnpm-lock.yaml /app/

FROM build-env AS prod-deps
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --prod --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/pnpm/store,sharing=locked pnpm install --prod --frozen-lockfile

FROM build-env AS build
RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile
RUN --mount=type=cache,id=pnpm,target=/pnpm/store,sharing=locked pnpm install --frozen-lockfile
COPY src tsconfig.json /app/
COPY prisma /app/
RUN pnpm exec prisma generate
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ services:
- sign
volumes:
- q2tg:/app/data
- /var/run/docker.sock:/var/run/docker.sock
environment:
- TG_API_ID=
- TG_API_HASH=
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
"devDependencies": {
"@types/cli-progress": "^3.11.5",
"@types/date-and-time": "^0.13.0",
"@types/dockerode": "^3.3.23",
"@types/fluent-ffmpeg": "^2.1.24",
"@types/lodash": "^4.14.201",
"@types/node": "^20.10.7",
"@types/prompts": "^2.4.9",
"@types/sharp": "^0.32.0",
"ts-node": "^10.9.2",
"typescript": "^5.3.3"
},
Expand All @@ -30,6 +30,7 @@
"big-integer": "^1.6.51",
"cli-progress": "^3.11.2",
"date-and-time": "^2.4.1",
"dockerode": "^4.0.2",
"dotenv": "^16.0.1",
"eviltransform": "^0.2.2",
"file-type": "^19.0.0",
Expand Down
Loading

0 comments on commit 7f8345f

Please sign in to comment.