21543: Move Go code into go-lightning subdir.
[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/go-lightning
7
8 FROM python:3.11-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   git
26
27 RUN pip install --upgrade pip matplotlib numpy pandas scikit-learn scipy
28
29 RUN wget --progress=dot:giga https://go.dev/dl/go1.22.2.linux-amd64.tar.gz && \
30     tar -C /usr/local -xzf go1.22.2.linux-amd64.tar.gz
31
32 ENV PATH $PATH:/usr/local/go/bin:/root/go/bin
33
34 # Getting lightning
35
36 COPY . /lightning
37 RUN cd /lightning && make && cd / && rm -rf lightning