Skip to content

Instantly share code, notes, and snippets.

@micronull
Last active September 18, 2017 05:58
Show Gist options
  • Save micronull/82a0dd7055ea9b261b29c33de828f03a to your computer and use it in GitHub Desktop.
Save micronull/82a0dd7055ea9b261b29c33de828f03a to your computer and use it in GitHub Desktop.
gbot-trader-docker
# version 1.0
# for https://github.com/steeply/gbot-trader
FROM node:8-alpine
MAINTAINER Stepan Ipatyev <istepan@yandex.ru>
RUN apk update && apk upgrade && \
apk add --no-cache bash git openssh && \
cd $HOME && \
git clone https://github.com/steeply/gbot-trader.git && \
cd gbot-trader && \
npm i && \
printf "#!/bin/bash\nset -o allexport\nsource options.txt\nnode $HOME/gbot-trader/build/server" > $HOME/run.sh && \
chmod u+x $HOME/run.sh
ADD ./options.txt /root/options.txt
CMD $HOME/run.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment