mirror of
https://github.com/versia-pub/server.git
synced 2026-01-26 04:06:01 +01:00
Include Sharp in Docker build
This commit is contained in:
parent
885ec12780
commit
8a40531d76
|
|
@ -24,6 +24,9 @@ WORKDIR /temp
|
||||||
RUN bunx --bun prisma generate
|
RUN bunx --bun prisma generate
|
||||||
RUN bun run prod-build
|
RUN bun run prod-build
|
||||||
COPY prisma /temp/dist
|
COPY prisma /temp/dist
|
||||||
|
WORKDIR /temp/dist
|
||||||
|
# Add sharp
|
||||||
|
RUN bun add sharp
|
||||||
|
|
||||||
# copy production dependencies and source code into final image
|
# copy production dependencies and source code into final image
|
||||||
# Alpine (musl) causes errors with Bun :(
|
# Alpine (musl) causes errors with Bun :(
|
||||||
|
|
|
||||||
2
build.ts
2
build.ts
|
|
@ -26,7 +26,7 @@ await Bun.build({
|
||||||
target: "bun",
|
target: "bun",
|
||||||
splitting: true,
|
splitting: true,
|
||||||
minify: false,
|
minify: false,
|
||||||
external: ["bullmq", "@prisma/client"],
|
external: ["bullmq", "@prisma/client", "sharp"],
|
||||||
}).then((output) => {
|
}).then((output) => {
|
||||||
if (!output.success) {
|
if (!output.success) {
|
||||||
console.log(output.logs);
|
console.log(output.logs);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue