Skip to content

Commit b734d8a

Browse files
committed
feat: ✨ Make production Docker image run on Bun
1 parent 4c0d36f commit b734d8a

File tree

3 files changed

+10
-10
lines changed

3 files changed

+10
-10
lines changed

Dockerfile

+9-9
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM imbios/bun-node:21-alpine AS base
1+
FROM imbios/bun-node:22-alpine AS base
22

33
# Install dependencies into temp directory
44
# This will cache them and speed up future builds
@@ -14,16 +14,16 @@ COPY . /app
1414
COPY --from=install /temp/dev/node_modules /app/node_modules
1515
RUN cd /app && bun run build --preset node-server
1616

17-
FROM node:21-alpine as final
17+
FROM oven/bun:1.1.24-alpine AS final
1818

1919
COPY --from=builder /app/.output/ /app
2020

21-
LABEL org.opencontainers.image.authors "Gaspard Wierzbinski (https://cpluspatch.com)"
22-
LABEL org.opencontainers.image.source "https://github.com/lysand-org/frontend"
23-
LABEL org.opencontainers.image.vendor "Lysand Org"
24-
LABEL org.opencontainers.image.licenses "AGPL-3.0"
25-
LABEL org.opencontainers.image.title "Lysand-FE"
26-
LABEL org.opencontainers.image.description "Frontend for the Lysand Project"
21+
LABEL org.opencontainers.image.authors="Gaspard Wierzbinski (https://cpluspatch.com)"
22+
LABEL org.opencontainers.image.source="https://github.com/lysand-org/frontend"
23+
LABEL org.opencontainers.image.vendor="Lysand Org"
24+
LABEL org.opencontainers.image.licenses="AGPL-3.0"
25+
LABEL org.opencontainers.image.title="Lysand-FE"
26+
LABEL org.opencontainers.image.description="Frontend for the Lysand Project"
2727

2828
WORKDIR /app
29-
CMD ["node", "server/index.mjs"]
29+
CMD ["bun", "run", "server/index.mjs"]

bun.lockb

-808 Bytes
Binary file not shown.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
"check": "bunx tsc -p ."
3030
},
3131
"dependencies": {
32-
"@ark-ui/vue": "^3.9.0",
32+
"@ark-ui/vue": "3.6.0",
3333
"@lysand-org/client": "^0.2.5",
3434
"@nuxt/fonts": "^0.7.2",
3535
"@tailwindcss/typography": "^0.5.14",

0 commit comments

Comments
 (0)