dockerizing

This commit is contained in:
2023-04-28 17:24:32 +02:00
parent 51d959891d
commit 7872d8c926
2 changed files with 21 additions and 16 deletions

View File

@@ -1,12 +1,10 @@
FROM debian:latest
RUN apt-get update \
&& apt-get install -y npm node-commander git \
&& git clone https://github.com/binance/binance-cli \
&& cd binance-cli \
&& npm install @binance/connector \
&& npm install -g \
&& ln -s /usr/local/lib/node_modules/\@binance/ /usr/lib/nodejs/
RUN apt-get update && \
apt-get -y install curl && \
curl https://gitea.ds9.dedyn.io/olli/debian.ansible.docker/raw/branch/main/build-debian-env.sh >build-debian-env.sh && \
bash -ex build-debian-env.sh && \
cd / && \
git clone https://gitea.ds9.dedyn.io/olli/dabo.git && \
chmod 555 /dabo/dabo-bot.sh /dabo/analyze.sh
ENV LANG en_US.utf8
COPY ./docker-entrypoint.sh /
ENTRYPOINT ["/docker-entrypoint.sh"]
ENTRYPOINT ["/dabo/bot.sh"]