Merge branch '19566-glm'
[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 ubuntu:latest
9 MAINTAINER Jiayong Li <jli@curii.com>s
10 USER root
11 ARG DEBIAN_FRONTEND=noninteractive
12
13 # Install necessary dependencies
14
15 RUN apt-get update --fix-missing -qy
16
17 RUN apt-get install -qy --no-install-recommends wget \
18   build-essential \
19   cmake \
20   zlib1g-dev \
21   libbz2-dev \
22   liblzma-dev \
23   libncurses5-dev \
24   libncursesw5-dev \
25   gcc \
26   make \
27   python3.8 \
28   python3-pip \
29   python3-numpy \
30   python3-pandas \
31   python3-scipy \
32   python3-matplotlib \
33   git
34
35 RUN pip3 install sklearn
36 RUN pip3 install --upgrade scipy
37
38 # Installing go 1.19
39
40 RUN wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz && \
41     tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
42
43 ENV PATH $PATH:/usr/local/go/bin:/root/go/bin
44
45 # Getting lightning
46
47 COPY . /lightning
48 RUN cd /lightning && make && cd / && rm -rf lightning