Skip to content

Commit

Permalink
feat: ✨ Make production Docker image run on Bun
Browse files Browse the repository at this point in the history
  • Loading branch information
CPlusPatch committed Aug 19, 2024
1 parent 4c0d36f commit b734d8a
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
18 changes: 9 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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"]
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit b734d8a

Please sign in to comment.