Spaces:
Running
Running
Commit ·
cceaa96
1
Parent(s): 50315b3
Committed with Git-Upload
Browse files- Dockerfile +1 -0
- package.ci.json +102 -0
Dockerfile
CHANGED
|
@@ -5,5 +5,6 @@ RUN mkdir /public || true
|
|
| 5 |
RUN mkdir /out || true
|
| 6 |
RUN chmod -R 777 /public /out /uploads || true && chmod 666 /index.html || true
|
| 7 |
# COPY app.js .
|
|
|
|
| 8 |
# Run as root (default in most base images, but ensure no USER directive is set)
|
| 9 |
ENTRYPOINT ["npm", "start"]
|
|
|
|
| 5 |
RUN mkdir /out || true
|
| 6 |
RUN chmod -R 777 /public /out /uploads || true && chmod 666 /index.html || true
|
| 7 |
# COPY app.js .
|
| 8 |
+
COPY package.ci.json package.json
|
| 9 |
# Run as root (default in most base images, but ensure no USER directive is set)
|
| 10 |
ENTRYPOINT ["npm", "start"]
|
package.ci.json
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"name": "semibit-media-render-farm",
|
| 3 |
+
"version": "1.0.0",
|
| 4 |
+
"type": "module",
|
| 5 |
+
"description": "semibit media renderer",
|
| 6 |
+
"sideEffects": [
|
| 7 |
+
"*.css"
|
| 8 |
+
],
|
| 9 |
+
"scripts": {
|
| 10 |
+
"submodule": "git submodule init && git submodule update",
|
| 11 |
+
"ci": "echo Runnin on CI",
|
| 12 |
+
"start": "node server.js",
|
| 13 |
+
"extract32": "set MODIFY_FILES=1 && node app.js",
|
| 14 |
+
"extract": "MODIFY_FILES=1 && node app.js",
|
| 15 |
+
"preview": "remotion studio --log=verbose",
|
| 16 |
+
"preinstall": "cd common-utils && npm run build",
|
| 17 |
+
"build:utils": "cd common-utils && npm run build && cd .. && npm install ./common-utils",
|
| 18 |
+
"render-build:igreels": "remotion render --audio-codec mp3 --image-format=jpeg --enable-multi-process-on-linux --quality=70 --concurrency 1 --gl=vulkan IGReelComposition",
|
| 19 |
+
"render-build": "remotion $npm_config_target --audio-codec mp3 --image-format=jpeg --enable-multi-process-on-linux --quality=70 --timeout 60000 --concurrency 1 --gl=angle $npm_config_composition",
|
| 20 |
+
"render-still": "remotion still --image-format=jpeg SemibitCompositionPoster ",
|
| 21 |
+
"render-image": "remotion still --image-format=jpeg --concurrency 1 $npm_config_composition $npm_config_output",
|
| 22 |
+
"render-images": "remotion render --enable-multiprocess-on-linux --sequence --image-format=jpeg $npm_config_composition $npm_config_output",
|
| 23 |
+
"paperdrive:pdf": " npm run render-images PaperDriveComposition ./out && node ./scripts/img2pdf.js -w 437 -h 651 -o out/pages.pdf && npm run render-image --composition=PaperDriveHorizontalCoverComposition --output=out/cover.jpeg && node ./scripts/img2pdf.js -i out/cover.jpeg -w 1258.9006153846171 -h 810 -o out/cover.pdf && rm out/*.jpeg",
|
| 24 |
+
"img2pdf": "node ./scripts/img2pdf.js",
|
| 25 |
+
"upgrade": "remotion upgrade",
|
| 26 |
+
"postinstall": "cd node_modules/common-utils && npm run build && cd ../../ && node ffmpeg-fix.js",
|
| 27 |
+
"serve": "firebase emulators:start --only functions --project semibitmedia",
|
| 28 |
+
"shell": "firebase functions:shell --project semibitmedia",
|
| 29 |
+
"deploy": "firebase deploy --only functions --project semibitmedia",
|
| 30 |
+
"logs": "firebase functions:log --project semibitmedia"
|
| 31 |
+
},
|
| 32 |
+
"engines": {
|
| 33 |
+
"node": "16"
|
| 34 |
+
},
|
| 35 |
+
"private": true,
|
| 36 |
+
"repository": {},
|
| 37 |
+
"license": "UNLICENSED",
|
| 38 |
+
"pnpm": {
|
| 39 |
+
"peerDependencyRules": {
|
| 40 |
+
"ignoreMissing": [
|
| 41 |
+
"webpack"
|
| 42 |
+
]
|
| 43 |
+
}
|
| 44 |
+
},
|
| 45 |
+
"dependencies": {
|
| 46 |
+
"@ffmpeg-installer/ffmpeg": "^1.1.0",
|
| 47 |
+
"@remotion/bundler": "4.0.347",
|
| 48 |
+
"@remotion/cli": "4.0.347",
|
| 49 |
+
"@remotion/eslint-config": "4.0.347",
|
| 50 |
+
"@remotion/google-fonts": "4.0.347",
|
| 51 |
+
"@remotion/lottie": "4.0.347",
|
| 52 |
+
"@remotion/noise": "4.0.347",
|
| 53 |
+
"@remotion/preload": "4.0.347",
|
| 54 |
+
"@remotion/tailwind": "4.0.347",
|
| 55 |
+
"@remotion/transitions": "4.0.347",
|
| 56 |
+
"@remotion/zod-types": "4.0.347",
|
| 57 |
+
"@types/react": "^18.0.26",
|
| 58 |
+
"@types/web": "^0.0.86",
|
| 59 |
+
"archiver": "^7.0.1",
|
| 60 |
+
"axios": "^1.4.0",
|
| 61 |
+
"body-parser": "^1.20.2",
|
| 62 |
+
"bottleneck": "^2.19.5",
|
| 63 |
+
"command-line-args": "^6.0.0",
|
| 64 |
+
"common-utils": "file:common-utils",
|
| 65 |
+
"express": "^4.18.2",
|
| 66 |
+
"ffbinaries": "^1.1.5",
|
| 67 |
+
"firebase-admin": "^11.9.0",
|
| 68 |
+
"firebase-functions": "^4.4.1",
|
| 69 |
+
"fs-extra": "^11.1.1",
|
| 70 |
+
"gojs-react": "^1.1.2",
|
| 71 |
+
"i": "^0.3.7",
|
| 72 |
+
"lodash": "^4.17.21",
|
| 73 |
+
"lottie-web": "^5.12.2",
|
| 74 |
+
"multi-db-orm": "^1.3.0",
|
| 75 |
+
"npm": "^9.8.1",
|
| 76 |
+
"path": "^0.12.7",
|
| 77 |
+
"pdfkit": "^0.15.0",
|
| 78 |
+
"puppeteer": "^21.3.6",
|
| 79 |
+
"react": "^18.0.0",
|
| 80 |
+
"react-dom": "^18.0.0",
|
| 81 |
+
"react-qrcode-logo": "^3.0.0",
|
| 82 |
+
"reactflow": "^11.9.4",
|
| 83 |
+
"remotion": "4.0.347",
|
| 84 |
+
"remotion-animated": "^2.0.0",
|
| 85 |
+
"remotion-transition-series": "^0.0.10",
|
| 86 |
+
"sharp": "^0.33.5",
|
| 87 |
+
"socket.io": "^4.7.2",
|
| 88 |
+
"styled-components": "^6.0.5",
|
| 89 |
+
"syllable-count-english": "^1.0.6",
|
| 90 |
+
"tree-kill": "^1.2.2",
|
| 91 |
+
"ts-node-dev": "^2.0.0",
|
| 92 |
+
"typescript": "^4.9.4",
|
| 93 |
+
"unzipper": "^0.12.3",
|
| 94 |
+
"which": "^3.0.1",
|
| 95 |
+
"ws": "^8.13.0",
|
| 96 |
+
"zod": "^3.21.4"
|
| 97 |
+
},
|
| 98 |
+
"packageManager": "npm@8.19.4",
|
| 99 |
+
"devDependencies": {
|
| 100 |
+
"@types/lodash": "^4.14.199"
|
| 101 |
+
}
|
| 102 |
+
}
|