Clean a bit

This commit is contained in:
2025-05-27 10:21:51 +07:00
parent 564a23ddec
commit 699ebd474b
4 changed files with 6 additions and 41 deletions

View File

@@ -8,10 +8,10 @@ WORKDIR /app
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
# Install git and Python
RUN apk update && apk add --no-cache git python3 make g++
#RUN apk update && apk add --no-cache git python3 make g++
# Create a symlink for python3 as python
RUN ln -sf /usr/bin/python3 /usr/bin/python
#RUN ln -sf /usr/bin/python3 /usr/bin/python
# Copy package.json and package-lock.json to the container
# COPY package*.json ./

View File

@@ -1,32 +0,0 @@
#!/bin/bash
# Array of known potentially hanging packages
hanging_packages=("xmlhttprequest-ssl@latest" "engine.io-parser@latest")
# Timeout in seconds for each package installation attempt
install_with_timeout() {
package=$1
echo "Attempting to install $package with a timeout of $timeout_duration seconds."
# Start npm install in the background
npm install $package --verbose &> $package.log &
# Get PID of the npm process
pid=$!
# Wait for the npm process to finish or timeout
(sleep $timeout_duration && kill -0 $pid 2>/dev/null && kill -9 $pid && echo "Timeout reached for $package, process killed." && echo $package >> exclude.log) &
waiter_pid=$!
# Wait for the npm process to complete
wait $pid
# Kill the waiter process in case npm finished before the timeout
kill -0 $waiter_pid 2>/dev/null && kill -9 $waiter_pid
}
# Install potentially hanging packages first with a timeout
for package in "${hanging_packages[@]}"; do
install_with_timeout $package
done

View File

@@ -165,7 +165,7 @@ export default function ActiveBots() {
// eslint-disable-next-line no-console
console.log(
'bot List',
bots.map((bot) => {
bots.map((bot: TradingBot) => {
return bot.name
})
)

View File

@@ -1,9 +1,6 @@
import { arbitrum, mainnet } from 'viem/chains'
import { createConfig } from '@privy-io/wagmi'
import { http } from 'wagmi'
// Define the Privy App ID - this should be added to your .env file
const PRIVY_APP_ID = import.meta.env.VITE_PRIVY_APP_ID || 'your-privy-app-id'
import {arbitrum, mainnet} from 'viem/chains'
import {createConfig} from '@privy-io/wagmi'
import {http} from 'wagmi'
// Create the Privy Wagmi config with Ethereum and Arbitrum chains
export const privyWagmiConfig = createConfig({