mirror of
https://github.com/versia-pub/frontend.git
synced 2025-12-06 16:38:20 +01:00
feat: ✨ Make production Docker image run on Bun
This commit is contained in:
parent
4c0d36f14b
commit
b734d8ad67
18
Dockerfile
18
Dockerfile
|
|
@ -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"]
|
||||
|
|
@ -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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue