mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 08:28:20 +01:00
refactor(build): 🐛 Build standalone Bun Nitro server again instead of purely static files
This commit is contained in:
parent
1852eed3aa
commit
959f87825b
|
|
@ -17,8 +17,6 @@ FROM base as final
|
||||||
|
|
||||||
COPY --from=builder /app/.output/ /app
|
COPY --from=builder /app/.output/ /app
|
||||||
|
|
||||||
RUN bun add --global serve
|
|
||||||
|
|
||||||
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
|
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
|
||||||
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe"
|
LABEL org.opencontainers.image.source "https://github.com/lysand-org/lysand-fe"
|
||||||
LABEL org.opencontainers.image.vendor "Lysand Org"
|
LABEL org.opencontainers.image.vendor "Lysand Org"
|
||||||
|
|
@ -27,4 +25,4 @@ LABEL org.opencontainers.image.title "Lysand-FE"
|
||||||
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
|
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
CMD ["bunx", "serve", "public", "--no-compression"]
|
CMD ["bun", "run", "server/index.mjs"]
|
||||||
|
|
@ -22,7 +22,7 @@ export default defineNuxtConfig({
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
nitro: {
|
nitro: {
|
||||||
preset: "static",
|
preset: "bun",
|
||||||
minify: true,
|
minify: true,
|
||||||
prerender: {
|
prerender: {
|
||||||
failOnError: true,
|
failOnError: true,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue