-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile.base
52 lines (45 loc) · 1.54 KB
/
Dockerfile.base
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
FROM ubuntu:18.04
RUN apt-get update && apt-get install -y wget sudo curl vim
RUN wget https://github.com/EOSIO/eosio.cdt/releases/download/v1.6.1/eosio.cdt_1.6.1-1_amd64.deb
RUN apt-get update && sudo apt install -y ./eosio.cdt_1.6.1-1_amd64.deb
RUN wget https://github.com/eosio/eos/releases/download/v2.0.2/eosio_2.0.2-1-ubuntu-18.04_amd64.deb
RUN apt-get update && sudo apt install -y ./eosio_2.0.2-1-ubuntu-18.04_amd64.deb
RUN apt-get update \
&& apt-get install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python \
&& pip3 install --upgrade pip
RUN apt-get update && apt-get install -y --no-install-recommends \
git \
build-essential \
curl \
python \
python3-dev \
python3-setuptools \
python3-pip \
&& \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN pip3 install --upgrade pip && \
pip3 install argparse && \
pip3 install grpcio && \
pip3 install grpcio-tools && \
pip3 install libeospy && \
pip3 install loguru && \
pip3 install matplotlib && \
pip3 install "numpy<1.17" && \
pip3 install networkx && \
pip3 install pebble && \
pip3 install pickle-mixin && \
pip3 install pycrypto && \
pip3 install --upgrade setuptools && \
pip3 install timeloop && \
pip3 install zipfile36
# Copy BitTensor source to this image.
RUN mkdir bittensor
COPY . bittensor/
WORKDIR /bittensor
# Install Bittensor
RUN pip3 install -e .
RUN pip3 uninstall -y tensorboard tensorflow tensorflow-estimator
RUN pip3 install "tensorflow==1.15.2"