Vo Hoang Minh commited on
Commit
a3546bb
·
1 Parent(s): fe1b1fb
Files changed (3) hide show
  1. package.json +16 -0
  2. requirements.txt +0 -2
  3. scripts/render/build.sh +19 -0
package.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "name": "toolkit",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "keywords": [],
10
+ "author": "",
11
+ "license": "ISC",
12
+ "packageManager": "pnpm@10.17.1",
13
+ "dependencies": {
14
+ "@octokit/rest": "^22.0.0"
15
+ }
16
+ }
requirements.txt CHANGED
@@ -3,8 +3,6 @@ requests
3
  matplotlib
4
  ipython
5
  openpyxl
6
- paddlepaddle
7
- paddleocr==3.2.0
8
  gradio
9
  edge_tts
10
  boto3
 
3
  matplotlib
4
  ipython
5
  openpyxl
 
 
6
  gradio
7
  edge_tts
8
  boto3
scripts/render/build.sh ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -e
3
+
4
+ IMAGE_NAME="render"
5
+ IMAGE_TAG="latest"
6
+ OWNER="tokhacnhi"
7
+ REPO="render"
8
+ GHCR_IMAGE="ghcr.io/$OWNER/$REPO/$IMAGE_NAME:$IMAGE_TAG"
9
+ DOCKER="/Applications/Docker.app/Contents/Resources/bin/docker"
10
+ DOCKERFILE="dockerbox/render/Dockerfile"
11
+
12
+ # -----
13
+
14
+ $DOCKER rmi "$IMAGE_NAME:$IMAGE_TAG" || true
15
+ $DOCKER rmi "$GHCR_IMAGE" || true
16
+
17
+ $DOCKER build --platform=linux/amd64 -t "$IMAGE_NAME:$IMAGE_TAG" -f "$DOCKERFILE" .
18
+ $DOCKER tag "$IMAGE_NAME:$IMAGE_TAG" "$GHCR_IMAGE"
19
+ $DOCKER push "$GHCR_IMAGE"