Use original Dockerfile to build image

This commit is contained in:
2025-03-25 17:25:52 +01:00
parent e0d4ad20c0
commit 1fbe39b96a
5 changed files with 7 additions and 21 deletions

View File

@@ -1,17 +0,0 @@
FROM public.ecr.aws/bitnami/node:18
RUN apt-get install git
ENV NODE_ENV=production
RUN npm install -g yarn
RUN npm install -g typescript
RUN npm install -g ts-node
WORKDIR /app
COPY . .
RUN yarn install
RUN yarn build
RUN yarn install --production
EXPOSE 9464
CMD [ "yarn", "start", "--config-file=config.yaml" ]

View File

@@ -3,7 +3,6 @@
> Keeper Bots in the Drift Protocol keep the protocol operational by performing automated actions as autonomous off-chain agents. Keepers are rewarded depending on the duties that they perform.
This repository contains tools to build, run and monitor Drift Keeper bots on Solana.
Checkout my article about all that stuff: https://nitro.dcentral.systems/drift-keeper-bot
More information:
- https://github.com/drift-labs/keeper-bots-v2/

View File

@@ -56,7 +56,7 @@ global:
eventSubscriberPollingInterval: 5000
bulkAccountLoaderPollingInterval: 5000
useJito: true
useJito: false
jitoBlockEngineUrl:
jitoAuthPrivateKey:

7
ctl.sh
View File

@@ -56,11 +56,11 @@ function build {
}
function keeper {
mkdir -p .build
git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta .build/keeper-bots-v2
git clone https://github.com/drift-labs/keeper-bots-v2 -b mainnet-beta --recurse-submodules .build/keeper-bots-v2
#pushd .build/keeper-bots-v2
# git checkout 21fd791d142490fe033b5e25719927c106a0aaf2
#popd
docker build -f Dockerfile -t ${DOCKER_IMAGE} .build/keeper-bots-v2
docker build -t ${DOCKER_IMAGE} .build/keeper-bots-v2
rm -rf .build
}
function tracker {
@@ -105,6 +105,9 @@ function run {
function all {
docker compose up
}
function keeper {
docker compose up keeper
}
function autoswap {
pushd auto-swap
npm start

View File

@@ -6,6 +6,7 @@ services:
image: ${DOCKER_IMAGE}
restart: unless-stopped
env_file: .env
command: "node ./lib/index.js --config-file=/app/config.yaml"
volumes:
- ./config.yaml:/app/config.yaml
auto-swap: