Use bun for web3proxy and webui
This commit is contained in:
@@ -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"]
|
||||
Reference in New Issue
Block a user