docker: switch to bun instead of node

This commit is contained in:
Xylight committed 2024-02-10 12:55:58 -08:00
1 parent 8edceaf54f
commit 5d271b1325
4 files changed
+13 -7

No files matched your search

+5 -5
View File
@@ -1,17 +1,17 @@
FROM node:20-alpine
FROM oven/bun:alpine
WORKDIR /app
COPY package.json ./
RUN npm install
RUN bun install
EXPOSE 3000
COPY . .
RUN ADAPTER=node npm run build
RUN ADAPTER=bun bun run build
USER node
USER bun
CMD ["npm", "run", "start"]
CMD ["bun", "run", "bunstart"]