-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
51 lines (33 loc) · 1.38 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
42
43
44
45
46
47
48
49
50
51
# dockerfile definition to create a docker image for the application (pinn_loss_gnn)
# jax base image
FROM nvidia/cuda:11.8.0-runtime-ubuntu22.04
# install python3.9
RUN apt-get update && apt-get install -y software-properties-common
RUN add-apt-repository ppa:deadsnakes/ppa && apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y python3.9 python3.9-dev python3.9-distutils
# install pip
RUN apt-get update && apt-get install -y python3-pip
# install jax
RUN pip3 install --upgrade pip
RUN pip install --upgrade "jax[cuda]" -f https://storage.googleapis.com/jax-releases/jax_cuda_releases.html
# install flax
RUN pip install flax
# install mlflow (for metrics tracking)
RUN pip install mlflow==1.27.0
# install optax (for flax)
RUN pip install optax
# install jraph (for graph prcessing)
RUN pip install jraph
# install pytest (for testing)
RUN pip install pytest
# install dvc (model versioning)
RUN pip install dvc
# install torch (only to use the dataloder / dataset capabilities)
RUN pip install torch
# install matplotlib (for plotting)
RUN pip install matplotlib
# install pckage to read hdf5 files
RUN pip install h5py
# install git without asking for confirmation or geographic location
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y git
RUN git config --global user.name "Adrien B"
RUN git config --global user.email "[email protected]"