Daemon-Technologies / Mining-Bot

26 stars 14 forks source link

Add official Docker image #80

Open LNow opened 3 years ago

LNow commented 3 years ago

Is your feature request related to a problem? Please describe. Some users might not want to install whole Node stack in order to run bot. Or they would like to run bot in containerized environment.

Describe the solution you'd like Create official Docker image that will work for everyone.

Describe alternatives you've considered none

Additional context Right now I'm using something like this:

FROM node:alpine3.12
RUN apk add --no-cache git procps

WORKDIR /usr/src/app
RUN git clone https://github.com/Daemon-Technologies/Mining-Bot . 
RUN yarn install

CMD ["npm", "start"]

Unfortunately due to large number of dependencies and not being able to build it with yarn install --prod final image size is ~1.7GB.