docker: switch to bun instead of node
This commit is contained in:
1 parent
8edceaf54f
commit
5d271b1325
4 files changed
+13
-7
No files matched your search
+5
-5
@@ -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"]
|
||||
Reference in new issue
Block a user