Use bun for web3proxy and webui

This commit is contained in:
2025-12-13 17:46:25 +07:00
parent c4e444347c
commit 588927678c
16 changed files with 6692 additions and 11326 deletions

View File

@@ -1,5 +1,5 @@
# Use an official Node.js image as the base
FROM node:22.14.0-alpine
# Use an official Bun image as the base
FROM oven/bun:1.3-debian
# Set the working directory in the container
WORKDIR /app
@@ -8,13 +8,13 @@ WORKDIR /app
COPY /src/Managing.Web3Proxy/package.json ./
# Install dependencies with the --legacy-peer-deps flag to bypass peer dependency conflicts
RUN npm install
# Install dependencies
RUN bun install
COPY src/Managing.Web3Proxy/ .
RUN npm run build
RUN bun run build
EXPOSE 4111
CMD ["npm", "run", "start"]
CMD ["bun", "run", "start"]