mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Include Sharp in Docker build
This commit is contained in:
parent
885ec12780
commit
8a40531d76
2 changed files with 4 additions and 1 deletions
|
|
@ -24,6 +24,9 @@ WORKDIR /temp
|
|||
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 :(
|
||||
|
|
|
|||
2
build.ts
2
build.ts
|
|
@ -26,7 +26,7 @@ await Bun.build({
|
|||
target: "bun",
|
||||
splitting: true,
|
||||
minify: false,
|
||||
external: ["bullmq", "@prisma/client"],
|
||||
external: ["bullmq", "@prisma/client", "sharp"],
|
||||
}).then((output) => {
|
||||
if (!output.success) {
|
||||
console.log(output.logs);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue