Add cwl and docker files
[lightning.git] / docker / lightning / Dockerfile
1 # Copyright (C) The Lightning Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 FROM ubuntu:latest
6 MAINTAINER Jiayong Li <jli@curii.com>
7 USER root
8 ARG DEBIAN_FRONTEND=noninteractive
9
10 # Install necessary dependencies
11
12 RUN apt-get update --fix-missing -qy
13
14 RUN apt-get install -qy --no-install-recommends wget \
15   build-essential \
16   cmake \
17   zlib1g-dev \
18   libbz2-dev \
19   liblzma-dev \
20   libncurses5-dev \
21   libncursesw5-dev \
22   gcc \
23   make \
24   python3.8 \
25   python3-pip \
26   python3-numpy \
27   python3-pandas \
28   python3-scipy \
29   python3-matplotlib \
30   git
31
32 RUN pip3 install sklearn
33 RUN pip3 install --upgrade scipy
34
35 # Installing go 1.19
36
37 RUN wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz && \
38     tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
39
40 ENV PATH $PATH:/usr/local/go/bin:/root/go/bin
41
42 # Getting lightning
43
44 RUN git clone https://github.com/arvados/lightning && \
45     cd lightning && make
46
47 WORKDIR /