mirror of
https://github.com/versia-pub/server.git
synced 2025-12-06 08:28:19 +01:00
Fix sharp install
This commit is contained in:
parent
8a40531d76
commit
9618ded96a
|
|
@ -25,8 +25,6 @@ RUN bunx --bun prisma generate
|
|||
RUN bun run prod-build
|
||||
COPY prisma /temp/dist
|
||||
WORKDIR /temp/dist
|
||||
# Add sharp
|
||||
RUN bun add sharp
|
||||
|
||||
# copy production dependencies and source code into final image
|
||||
# Alpine (musl) causes errors with Bun :(
|
||||
|
|
|
|||
4
build.ts
4
build.ts
|
|
@ -45,6 +45,10 @@ await $`mkdir -p dist/node_modules/.bin`;
|
|||
await $`cp -r ${process.cwd()}/node_modules/.bin/prisma dist/node_modules/.bin`;
|
||||
await $`cp -r ${process.cwd()}/node_modules/prisma dist/node_modules/`;
|
||||
|
||||
// Copy Sharp to dist
|
||||
await $`cp -r ${process.cwd()}/node_modules/@img dist/node_modules/`;
|
||||
await $`cp -r ${process.cwd()}/node_modules/sharp dist/node_modules/`;
|
||||
|
||||
// Create pages directory
|
||||
await $`mkdir -p dist/pages/dist`;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue