Skip to content

Commit

Permalink
edgecreator-api: Replace sharp dependency with imagemagick, fix Docke…
Browse files Browse the repository at this point in the history
…rfile
  • Loading branch information
bperel committed Oct 7, 2024
1 parent 6bd9674 commit d8b891b
Show file tree
Hide file tree
Showing 5 changed files with 770 additions and 2,040 deletions.
3 changes: 2 additions & 1 deletion apps/edgecreator/api/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@ COPY packages/prisma-schemas/client_coa/libquery_engine-debian-openssl-3.0.x.so.
COPY packages/prisma-schemas/client_edgecreator/libquery_engine-debian-openssl-3.0.x.so.node /tmp/prisma-engines/
COPY packages/prisma-schemas/client_dm/libquery_engine-debian-openssl-3.0.x.so.node /tmp/prisma-engines/

COPY packages/prisma-schemas /app/
COPY apps/edgecreator/api/.env /app/
COPY apps/edgecreator/api/bundle.mjs /app/
COPY apps/edgecreator/api/dist/routes /app/routes
COPY apps/edgecreator/api/package.json /app/package.json

EXPOSE 3001
CMD ["node", "bundle.mjs"]
3 changes: 1 addition & 2 deletions apps/edgecreator/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"type": "module",
"version": "1.0.0",
"scripts": {
"build": "pnpm generate-route-types:clean && bun build --target node --sourcemap index.ts --outfile bundle.mjs",
"build": "rm -rf dist && find routes -name '*.ts' -type f | while read routeFile; do echo $routeFile; bun build --target node $routeFile --outfile ./dist/$(echo $routeFile | sed 's/\\.ts/.js/g'); done; bun build --target node --sourcemap index.ts --outfile bundle.mjs",
"dev": "pnpm generate-route-types:clean && concurrently -n bun,tsc \"bun --inspect run --hot index.ts\" \"tsc --noEmit --watch\"",
"generate-route-types:clean": "bun generate-route-types.ts",
"prod:deploy": "DIR=apps/edgecreator/api pnpm -F '~ci' prod:docker-compose-up",
Expand All @@ -29,7 +29,6 @@
"multer": "1.4.5-lts.1",
"node-base64-image": "^2.0.6",
"nodemon": "^2.0.22",
"sharp": "^0.33.3",
"universal-cookie": "^4.0.4",
"~api-routes": "workspace:*",
"~dm-types": "workspace:*",
Expand Down
Loading

0 comments on commit d8b891b

Please sign in to comment.