Skip to content

Commit

Permalink
refactor(build): 🐛 Build standalone Bun Nitro server again instead of…
Browse files Browse the repository at this point in the history
… purely static files
  • Loading branch information
CPlusPatch committed Apr 22, 2024
1 parent 1852eed commit 959f878
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@ FROM base as final

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.source "https://github.com/lysand-org/lysand-fe"
LABEL org.opencontainers.image.vendor "Lysand Org"
Expand All @@ -27,4 +25,4 @@ LABEL org.opencontainers.image.title "Lysand-FE"
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"

WORKDIR /app
CMD ["bunx", "serve", "public", "--no-compression"]
CMD ["bun", "run", "server/index.mjs"]
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default defineNuxtConfig({
},
},
nitro: {
preset: "static",
preset: "bun",
minify: true,
prerender: {
failOnError: true,
Expand Down

0 comments on commit 959f878

Please sign in to comment.