42 lines
1.3 KiB
Plaintext
42 lines
1.3 KiB
Plaintext
FROM ubuntu:20.04
|
|
|
|
SHELL ["/bin/sh", "-c"]
|
|
|
|
USER root
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN /usr/bin/ls
|
|
RUN sed -i "s,# deb http://archive.canonical.com/ubuntu,deb http://archive.canonical.com/ubuntu,g" /etc/apt/sources.list
|
|
|
|
## Install some deps
|
|
#RUN ls /etc/apt/
|
|
RUN apt-get update -y
|
|
RUN apt-get install -y software-properties-common
|
|
RUN add-apt-repository ppa:deadsnakes/ppa
|
|
RUN apt-get update -y && apt-get upgrade -y
|
|
RUN apt-get install -y python3 python3-dev python3-venv python3-pip
|
|
#RUN update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.10 100
|
|
|
|
RUN apt-get install -y dpkg-dev cmake g++ gcc binutils libx11-dev libxpm-dev libxft-dev libxext-dev libssl-dev
|
|
|
|
#RUN python3 --version && python3 -m ensurepip
|
|
RUN python3 -m pip install --upgrade pip
|
|
|
|
RUN python3 -m pip install pandas numpy matplotlib MarkupSafe wandb uproot setuptools
|
|
RUN python3 -m pip install --no-cache-dir torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
|
|
|
# # # # NO GEANT
|
|
|
|
|
|
RUN apt-get install -y git
|
|
|
|
RUN python3 -m pip install ipython
|
|
RUN apt-get install -y tk # for dawn
|
|
|
|
# add jupyter packages for UC2 on top so they don't need to be installed every time
|
|
RUN python3 -m pip install jupyterlab jupyterhub==3.1.1 batchspawner
|
|
RUN ln -s /usr/bin/python3 /usr/bin/python
|
|
|
|
# no calo sim package
|