feat: Make production Docker image run on Bun

This commit is contained in:
Jesse Wierzbinski 2024-08-19 22:24:10 +02:00
parent 4c0d36f14b
commit b734d8ad67
No known key found for this signature in database
3 changed files with 10 additions and 10 deletions

View file

@ -1,4 +1,4 @@
FROM imbios/bun-node:21-alpine AS base
FROM imbios/bun-node:22-alpine AS base
# Install dependencies into temp directory
# This will cache them and speed up future builds
@ -14,16 +14,16 @@ COPY . /app
COPY --from=install /temp/dev/node_modules /app/node_modules
RUN cd /app && bun run build --preset node-server
FROM node:21-alpine as final
FROM oven/bun:1.1.24-alpine AS final
COPY --from=builder /app/.output/ /app
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
LABEL org.opencontainers.image.source "https://github.com/lysand-org/frontend"
LABEL org.opencontainers.image.vendor "Lysand Org"
LABEL org.opencontainers.image.licenses "AGPL-3.0"
LABEL org.opencontainers.image.title "Lysand-FE"
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
LABEL org.opencontainers.image.authors="Gaspard Wierzbinski (https://cpluspatch.com)"
LABEL org.opencontainers.image.source="https://github.com/lysand-org/frontend"
LABEL org.opencontainers.image.vendor="Lysand Org"
LABEL org.opencontainers.image.licenses="AGPL-3.0"
LABEL org.opencontainers.image.title="Lysand-FE"
LABEL org.opencontainers.image.description="Frontend for the Lysand Project"
WORKDIR /app
CMD ["node", "server/index.mjs"]
CMD ["bun", "run", "server/index.mjs"]

BIN
bun.lockb

Binary file not shown.

View file

@ -29,7 +29,7 @@
"check": "bunx tsc -p ."
},
"dependencies": {
"@ark-ui/vue": "^3.9.0",
"@ark-ui/vue": "3.6.0",
"@lysand-org/client": "^0.2.5",
"@nuxt/fonts": "^0.7.2",
"@tailwindcss/typography": "^0.5.14",