-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
41 lines (32 loc) · 1.4 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Select the base image
### To run with GPUs, use the following:
FROM nvcr.io/nvidia/pytorch:21.10-py3
###
### To run without GPUs, use the following
# FROM ubuntu:18.04
# RUN apt-get update
# RUN apt-get install -y software-properties-common
# RUN add-apt-repository ppa:deadsnakes/ppa
# RUN apt-get install -y python3.8-dev python3-pip
# RUN rm /usr/bin/python3 && ln -s /usr/bin/python3.8 /usr/bin/python3
# RUN python3 --version
# RUN pip3 --version
# RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 1
###
### other setup
ENV TZ=Europe/Berlin
ARG DEBIAN_FRONTEND=noninteractive
# Select the working directory
WORKDIR /Workspace
# Install system libraries required by OpenCV.
RUN apt-get update \
&& apt-get install -y libgl1-mesa-glx libgtk2.0-0 libsm6 libxext6 \
&& rm -rf /var/lib/apt/lists/*
RUN pip install --upgrade pip
# Install Python requirements
RUN pip install opencv-python==4.5.5.64
RUN pip install torch==1.12.0+cu116 torchvision==0.13.0+cu116 -f https://download.pytorch.org/whl/torch_stable.html
RUN pip install networkx==3.0 lark-parser joblib scikit-learn torchsummary setuptools tensorboard numpy>=1.18.5 tqdm>=4.41.0 matplotlib>=3.2.2 opencv-python>=4.1.2 Pillow PyYAML>=5.3.1 scipy>=1.4.1 seaborn pandas rtpt
RUN pip install pyg_lib torch_scatter torch_sparse -f https://data.pyg.org/whl/torch-1.12.0+cu116.html
RUN pip install torch-geometric
RUN pip install wandb anytree