-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (24 loc) · 848 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM ruby:3.0-slim
RUN apt-get update && apt-get install build-essential curl -y
# max size of f.addresses file in bytes, e.g. 20000000 would make it max out at ~20Mb
ENV MAX_BYTES_F_ADDRESSES=20000000
# max size of shucks.sux file in bytes, e.g. 10000000 would make it max out at ~10Mb
ENV MAX_BYTES_SHUCKS_FILE=10000000
# discord hook
ENV CRACKSHMACKIN_DISCORD_HOOK=""
ENV VERBOSE_DISCORD_NOTIFICATIONS="true"
RUN gem install bundler
WORKDIR /crackshmackin
COPY Gemfile .
RUN bundle install
COPY find_satoshi.rb .
COPY get_lucky.rb .
COPY crackshmackin.god .
COPY entrypoint.sh .
RUN chmod +x entrypoint.sh
RUN mkdir -p /crackshmackin/data
RUN touch /crackshmackin/data/f.addresses
RUN touch /crackshmackin/data/final.destination
RUN touch /crackshmackin/data/fyeah.bux
RUN touch /crackshmackin/data/shucks.sux
ENTRYPOINT "./entrypoint.sh"