Update Go version.
[lightning.git] / docker / lightning / Dockerfile
index 061d9d45a7a09f8bd3b7f87c28bd75f30ff6063b..a6df7bb3d3141a0322d1cc40c8f594b0120df8b8 100644 (file)
@@ -5,10 +5,8 @@
 # build instruction:
 # docker build -t dockername --file=/path/to/lightning/docker/lightning/Dockerfile /path/to/lightning
 
-FROM ubuntu:latest
-MAINTAINER Jiayong Li <jli@curii.com>s
+FROM python:3.11-buster
 USER root
-ARG DEBIAN_FRONTEND=noninteractive
 
 # Install necessary dependencies
 
@@ -24,21 +22,12 @@ RUN apt-get install -qy --no-install-recommends wget \
   libncursesw5-dev \
   gcc \
   make \
-  python3.8 \
-  python3-pip \
-  python3-numpy \
-  python3-pandas \
-  python3-scipy \
-  python3-matplotlib \
   git
 
-RUN pip3 install sklearn
-RUN pip3 install --upgrade scipy
+RUN pip install --upgrade pip matplotlib numpy pandas scikit-learn scipy
 
-# Installing go 1.19
-
-RUN wget https://go.dev/dl/go1.19.3.linux-amd64.tar.gz && \
-    tar -C /usr/local -xzf go1.19.3.linux-amd64.tar.gz
+RUN wget --progress=dot:giga https://go.dev/dl/go1.20.10.linux-amd64.tar.gz && \
+    tar -C /usr/local -xzf go1.20.10.linux-amd64.tar.gz
 
 ENV PATH $PATH:/usr/local/go/bin:/root/go/bin