Updating lightning Dockerfile to go from `pip3 install sklearn` -> `pip3 install...
[lightning.git] / docker / lightning / Dockerfile
1 # Copyright (C) The Lightning Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 # build instruction:
6 # docker build -t dockername --file=/path/to/lightning/docker/lightning/Dockerfile /path/to/lightning
7
8 FROM python:3.8-buster
9 USER root
10
11 # Install necessary dependencies
12
13 RUN apt-get update --fix-missing -qy
14
15 RUN apt-get install -qy --no-install-recommends wget \
16   build-essential \
17   cmake \
18   zlib1g-dev \
19   libbz2-dev \
20   liblzma-dev \
21   libncurses5-dev \
22   libncursesw5-dev \
23   gcc \
24   make \
25   python3-numpy \
26   python3-pandas \
27   python3-scipy \
28   python3-matplotlib \
29   git
30
31 RUN pip3 install scikit-learn
32 RUN pip3 install --upgrade scipy
33
34 # Installing go 1.19
35
36 RUN wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz && \
37     tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
38
39 ENV PATH $PATH:/usr/local/go/bin:/root/go/bin
40
41 # Getting lightning
42
43 COPY . /lightning
44 RUN cd /lightning && make && cd / && rm -rf lightning